Skip to content

Commit b4bffb7

Browse files
committed
Merge pull request #524 from lowjoel/master
Remove including unistd.h when compiling under Visual C++
2 parents ddd708b + c9a2bdd commit b4bffb7

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-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

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)