summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/getdirname.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/getdirname.c')
-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