浏览代码

need unistd/string header files

Mike Frysinger 19 年之前
父节点
当前提交
1ff4b6bb11
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      test/stat/stat.c

+ 3 - 0
test/stat/stat.c

@@ -1,6 +1,9 @@
 #include <stdio.h>
+#include <string.h>
 #include <fcntl.h>
 #include <sys/stat.h>
+#include <unistd.h>
+#include <stdlib.h>
 
 void print_struct_stat(char *msg, struct stat *s)
 {