From 74ca8d6f5d2e29bb7cf4606531313ee8c52b9eda Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sun, 27 Nov 2016 22:31:25 +0100 Subject: remove UCLIBC_HAS_LFS --- libc/sysdeps/linux/common/getdirname.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'libc/sysdeps/linux/common/getdirname.c') 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. */ -- cgit v1.2.3