Browse Source

get_current_dir_name is GNU extension as well

Peter S. Mazinger 18 years ago
parent
commit
72e271600e
1 changed files with 3 additions and 0 deletions
  1. 3 0
      libc/sysdeps/linux/common/getdirname.c

+ 3 - 0
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