Skip to content

Commit c9a2bdd

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

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ext/mysql2/infile.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#include <mysql2_ext.h>
22

33
#include <errno.h>
4+
#ifndef _MSC_VER
45
#include <unistd.h>
6+
#endif
57
#include <fcntl.h>
68

79
#define ERROR_LEN 1024

0 commit comments

Comments
 (0)