ソースを参照

get_current_dir_name is GNU extension as well

Peter S. Mazinger 18 年 前
コミット
72e271600e
1 ファイル変更3 行追加0 行削除
  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