summaryrefslogtreecommitdiff
path: root/read.c
diff options
context:
space:
mode:
authortzickel <private@com>2015-03-13 15:58:23 +0200
committertzickel <private@com>2015-03-13 15:58:23 +0200
commitec229678c22e673e8d48070593f7b028a514882a (patch)
tree66a7d2fa7af15987b87b2a0542289f00f3a94493 /read.c
parent37c06facda57af9bad68f50c18edfa22d6ef76f7 (diff)
Added support for compiling the parser code with Microsoft Visual C compiler.
For hiredis-py and others support on windows.
Diffstat (limited to 'read.c')
-rw-r--r--read.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/read.c b/read.c
index 457ac68..df1a467 100644
--- a/read.c
+++ b/read.c
@@ -33,7 +33,9 @@
#include "fmacros.h"
#include <string.h>
#include <stdlib.h>
+#ifndef _MSC_VER
#include <unistd.h>
+#endif
#include <assert.h>
#include <errno.h>
#include <ctype.h>