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 /libc/unistd | |
parent | d9f4c6bb0568da6d80f60a0040354f45478f84a3 (diff) |
remove UCLIBC_HAS_LFS
Diffstat (limited to 'libc/unistd')
-rw-r--r-- | libc/unistd/daemon.c | 5 | ||||
-rw-r--r-- | libc/unistd/fpathconf.c | 2 | ||||
-rw-r--r-- | libc/unistd/pathconf.c | 2 | ||||
-rw-r--r-- | libc/unistd/sysconf.c | 4 |
4 files changed, 2 insertions, 11 deletions
diff --git a/libc/unistd/daemon.c b/libc/unistd/daemon.c index 8fa292850..3b3a6261f 100644 --- a/libc/unistd/daemon.c +++ b/libc/unistd/daemon.c @@ -53,13 +53,8 @@ #include <sys/stat.h> #endif -#ifdef __UCLIBC_HAS_LFS__ #define STAT stat64 #define FSTAT fstat64 -#else -#define STAT stat -#define FSTAT fstat -#endif #if defined __USE_BSD || (defined __USE_XOPEN && !defined __USE_UNIX98) diff --git a/libc/unistd/fpathconf.c b/libc/unistd/fpathconf.c index fe4bcea67..556343be2 100644 --- a/libc/unistd/fpathconf.c +++ b/libc/unistd/fpathconf.c @@ -202,7 +202,7 @@ long int fpathconf(int fd, int name) #endif case _PC_ASYNC_IO: -#if defined _POSIX_ASYNC_IO && defined __UCLIBC_HAS_LFS__ +#if defined _POSIX_ASYNC_IO { /* AIO is only allowed on regular files and block devices. */ struct stat st; diff --git a/libc/unistd/pathconf.c b/libc/unistd/pathconf.c index de78a83e9..c8d03a20b 100644 --- a/libc/unistd/pathconf.c +++ b/libc/unistd/pathconf.c @@ -149,7 +149,7 @@ pathconf (const char *path, int name) #endif case _PC_ASYNC_IO: -#if defined _POSIX_ASYNC_IO && defined __UCLIBC_HAS_LFS__ +#if defined _POSIX_ASYNC_IO { /* AIO is only allowed on regular files and block devices. */ struct stat st; diff --git a/libc/unistd/sysconf.c b/libc/unistd/sysconf.c index 3d3b1a5ff..172794e9c 100644 --- a/libc/unistd/sysconf.c +++ b/libc/unistd/sysconf.c @@ -99,10 +99,6 @@ static int nprocessors_onln(void) return ret != 0 ? ret : 1; } -#if defined __UCLIBC__ && !defined __UCLIBC_HAS_LFS__ -# define readdir64 readdir -# define dirent64 dirent -#endif static int nprocessors_conf(void) { int ret = 0; |