OSDN Git Service

get_current_dir_name is GNU extension as well
authorPeter S. Mazinger <ps.m@gmx.net>
Mon, 13 Feb 2006 08:48:00 +0000 (08:48 -0000)
committerPeter S. Mazinger <ps.m@gmx.net>
Mon, 13 Feb 2006 08:48:00 +0000 (08:48 -0000)
libc/sysdeps/linux/common/getdirname.c

index 43e7361..e196d1b 100644 (file)
@@ -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