summaryrefslogtreecommitdiff
path: root/sample/http-server.c
diff options
context:
space:
mode:
Diffstat (limited to 'sample/http-server.c')
-rw-r--r--sample/http-server.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/sample/http-server.c b/sample/http-server.c
index a02a66f4..f8ba2a6a 100644
--- a/sample/http-server.c
+++ b/sample/http-server.c
@@ -48,12 +48,22 @@
#endif
#ifdef _WIN32
+#ifndef stat
#define stat _stat
+#endif
+#ifndef fstat
#define fstat _fstat
+#endif
+#ifndef open
#define open _open
+#endif
+#ifndef close
#define close _close
+#endif
+#ifndef O_RDONLY
#define O_RDONLY _O_RDONLY
#endif
+#endif
char uri_root[512];