Skip to content

Commit 2b39df4

Browse files
committed
Visual Studio doesn't have unistd.h, and mysql2 compiles just fine.
1 parent ddd708b commit 2b39df4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ext/mysql2/client.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
#include <sys/types.h>
77
#include <sys/socket.h>
88
#endif
9+
#ifndef _MSC_VER
910
#include <unistd.h>
11+
#endif
1012
#include <fcntl.h>
1113
#include "wait_for_single_fd.h"
1214

0 commit comments

Comments
 (0)