summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/getdirname.c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2016-11-27 22:31:25 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2016-11-27 22:32:11 +0100
commit74ca8d6f5d2e29bb7cf4606531313ee8c52b9eda (patch)
treeb2e5ad49c4499ca7c21a92e4d4c3e3aced7cb524 /libc/sysdeps/linux/common/getdirname.c
parentd9f4c6bb0568da6d80f60a0040354f45478f84a3 (diff)
remove UCLIBC_HAS_LFS
Diffstat (limited to 'libc/sysdeps/linux/common/getdirname.c')
-rw-r--r--libc/sysdeps/linux/common/getdirname.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/libc/sysdeps/linux/common/getdirname.c b/libc/sysdeps/linux/common/getdirname.c
index 862559a2e..7153cd1e0 100644
--- a/libc/sysdeps/linux/common/getdirname.c
+++ b/libc/sysdeps/linux/common/getdirname.c
@@ -32,21 +32,12 @@ char *
get_current_dir_name (void)
{
char *pwd;
-#ifdef __UCLIBC_HAS_LFS__
struct stat64 dotstat, pwdstat;
-#else
- struct stat dotstat, pwdstat;
-#endif
pwd = getenv ("PWD");
if (pwd != NULL
-#ifdef __UCLIBC_HAS_LFS__
&& stat64 (".", &dotstat) == 0
&& stat64 (pwd, &pwdstat) == 0
-#else
- && stat (".", &dotstat) == 0
- && stat (pwd, &pwdstat) == 0
-#endif
&& pwdstat.st_dev == dotstat.st_dev
&& pwdstat.st_ino == dotstat.st_ino)
/* The PWD value is correct. Use it. */