Commit 3ff479170160d9e078a2dd3036a93db74961f5eb

Authored by Stéphane Raimbault
1 parent 47a72f1d

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

tests/random-test-client.c
@@ -16,7 +16,9 @@ @@ -16,7 +16,9 @@
16 */ 16 */
17 17
18 #include <stdio.h> 18 #include <stdio.h>
  19 +#ifndef _MSC_VER
19 #include <unistd.h> 20 #include <unistd.h>
  21 +#endif
20 #include <string.h> 22 #include <string.h>
21 #include <stdlib.h> 23 #include <stdlib.h>
22 #include <errno.h> 24 #include <errno.h>
tests/random-test-server.c
@@ -16,7 +16,9 @@ @@ -16,7 +16,9 @@
16 */ 16 */
17 17
18 #include <stdio.h> 18 #include <stdio.h>
  19 +#ifndef _MSC_VER
19 #include <unistd.h> 20 #include <unistd.h>
  21 +#endif
20 #include <stdlib.h> 22 #include <stdlib.h>
21 #include <errno.h> 23 #include <errno.h>
22 24