瀏覽代碼

add an include to fix macos, and probably bsd too

Nick Mathewson 5 年之前
父節點
當前提交
5921b23e15
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/lib/osinfo/uname.c

+ 1 - 0
src/lib/osinfo/uname.c

@@ -15,6 +15,7 @@
 #ifdef _WIN32
 #include <windows.h>
 #endif
+#include <string.h>
 
 /** Hold the result of our call to <b>uname</b>. */
 static char uname_result[256];