summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-09-16 15:39:55 +0000
committerEric Andersen <andersen@codepoet.org>2002-09-16 15:39:55 +0000
commit9651eaecd1d9edfcf521a9051904ff8242854dc5 (patch)
tree180ae5b59e8ff168fbd725c29e006d5e8839aebe /libc
parent8557ffa0fd03079db04dc337fc31edabe311c369 (diff)
Use __UCLIBC_HAVE_LFS__ not __USE_LARGEFILE64 to decide if
64 bit interfaces should be used. -Erik
Diffstat (limited to 'libc')
-rw-r--r--libc/sysdeps/linux/common/getdirname.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/common/getdirname.c b/libc/sysdeps/linux/common/getdirname.c
index 0d1dd8301..6ea76cca9 100644
--- a/libc/sysdeps/linux/common/getdirname.c
+++ b/libc/sysdeps/linux/common/getdirname.c
@@ -17,6 +17,7 @@
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA. */
+#include <features.h>
#include <unistd.h>
#include <sys/stat.h>
#include <stdlib.h>
@@ -30,7 +31,7 @@ char *
get_current_dir_name (void)
{
char *pwd;
-#ifdef __USE_LARGEFILE64
+#if defined __UCLIBC_HAVE_LFS__
struct stat64 dotstat, pwdstat;
#else
struct stat dotstat, pwdstat;
@@ -38,7 +39,7 @@ get_current_dir_name (void)
pwd = getenv ("PWD");
if (pwd != NULL
-#ifdef __USE_LARGEFILE64
+#if defined __UCLIBC_HAVE_LFS__
&& stat64 (".", &dotstat) == 0
&& stat64 (pwd, &pwdstat) == 0
#else