瀏覽代碼

Fix random-test-* with Microsoft compiler (closes #65)

Stéphane Raimbault 12 年之前
父節點
當前提交
3ff4791701
共有 2 個文件被更改,包括 4 次插入0 次删除
  1. 2 0
      tests/random-test-client.c
  2. 2 0
      tests/random-test-server.c

+ 2 - 0
tests/random-test-client.c

@@ -16,7 +16,9 @@
  */
 
 #include <stdio.h>
+#ifndef _MSC_VER
 #include <unistd.h>
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <errno.h>

+ 2 - 0
tests/random-test-server.c

@@ -16,7 +16,9 @@
  */
 
 #include <stdio.h>
+#ifndef _MSC_VER
 #include <unistd.h>
+#endif
 #include <stdlib.h>
 #include <errno.h>