summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-02-13 08:48:00 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-02-13 08:48:00 +0000
commit72e271600e4f816dd0235df9155a9596f9921555 (patch)
tree5caba217caca2d88ffa8cf0cc34b76d8528b4812 /libc/sysdeps/linux
parentc444a965e2d60c5a7de046aa3a279dc0f5bd117b (diff)
get_current_dir_name is GNU extension as well
Diffstat (limited to 'libc/sysdeps/linux')
-rw-r--r--libc/sysdeps/linux/common/getdirname.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/getdirname.c b/libc/sysdeps/linux/common/getdirname.c
index 43e736120..e196d1bd9 100644
--- a/libc/sysdeps/linux/common/getdirname.c
+++ b/libc/sysdeps/linux/common/getdirname.c
@@ -18,6 +18,8 @@
02111-1307 USA. */
#include <features.h>
+
+#ifdef __USE_GNU
#include <unistd.h>
#include <sys/stat.h>
#include <stdlib.h>
@@ -62,3 +64,4 @@ get_current_dir_name (void)
return getcwd ((char *) NULL, 0);
}
+#endif