diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2016-11-27 22:31:25 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2016-11-27 22:32:11 +0100 |
commit | 74ca8d6f5d2e29bb7cf4606531313ee8c52b9eda (patch) | |
tree | b2e5ad49c4499ca7c21a92e4d4c3e3aced7cb524 /include | |
parent | d9f4c6bb0568da6d80f60a0040354f45478f84a3 (diff) |
remove UCLIBC_HAS_LFS
Diffstat (limited to 'include')
-rw-r--r-- | include/_lfs_64.h | 8 | ||||
-rw-r--r-- | include/dirent.h | 2 | ||||
-rw-r--r-- | include/features.h | 14 |
3 files changed, 0 insertions, 24 deletions
diff --git a/include/_lfs_64.h b/include/_lfs_64.h index deee98a77..88af93c0b 100644 --- a/include/_lfs_64.h +++ b/include/_lfs_64.h @@ -5,8 +5,6 @@ */ #include <features.h> -#ifdef __UCLIBC_HAS_LFS__ - #if defined _FILE_OFFSET_BITS && _FILE_OFFSET_BITS != 64 #undef _FILE_OFFSET_BITS #define _FILE_OFFSET_BITS 64 @@ -21,9 +19,3 @@ #ifdef __USE_FILE_OFFSET64 # undef __USE_FILE_OFFSET64 #endif - -#else - -# error Do not include this header in files not built when LFS is disabled - -#endif diff --git a/include/dirent.h b/include/dirent.h index 00aa0773e..9abd0542a 100644 --- a/include/dirent.h +++ b/include/dirent.h @@ -369,9 +369,7 @@ __END_DECLS #ifdef _LIBC extern __ssize_t __getdents(int fd, char *buf, size_t count) attribute_hidden; -# ifdef __UCLIBC_HAS_LFS__ extern __ssize_t __getdents64 (int fd, char *buf, size_t count) attribute_hidden; -# endif #endif #endif /* dirent.h */ diff --git a/include/features.h b/include/features.h index dcf1348d8..e76bbbab1 100644 --- a/include/features.h +++ b/include/features.h @@ -211,16 +211,6 @@ # endif # endif -# ifndef __UCLIBC_HAS_LFS__ -# undef _LARGEFILE64_SOURCE -/* NOTE: This is probably incorrect on a 64-bit arch... */ -# if defined _FILE_OFFSET_BITS && _FILE_OFFSET_BITS == 64 -# error It appears you have defined _FILE_OFFSET_BITS=64. Unfortunately, \ -uClibc was built without large file support enabled. -# endif -# elif defined __BCC__ -# error BCC does not support LFS, please disable it -# endif #endif /* __UCLIBC__ */ /* If nothing (other than _GNU_SOURCE) is defined, @@ -419,9 +409,7 @@ uClibc was built without large file support enabled. __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. */ # if defined __USE_FILE_OFFSET64 && !defined __REDIRECT # define __USE_LARGEFILE 1 -# ifdef __UCLIBC_HAS_LFS__ # define __USE_LARGEFILE64 1 -# endif # endif #endif /* !ASSEMBLER */ @@ -440,10 +428,8 @@ uClibc was built without large file support enabled. #endif #ifdef _LIBC -# ifdef __UCLIBC_HAS_LFS__ # undef _FILE_OFFSET_BITS # undef __USE_FILE_OFFSET64 -# endif # include <libc-internal.h> #endif |