Browse Source

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

Stéphane Raimbault 12 years ago
parent
commit
3ff4791701
2 changed files with 4 additions and 0 deletions
  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>