summaryrefslogtreecommitdiff
path: root/src/daemon/minimal_example.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/minimal_example.c')
-rw-r--r--src/daemon/minimal_example.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/daemon/minimal_example.c b/src/daemon/minimal_example.c
index 009721d6..6dad8180 100644
--- a/src/daemon/minimal_example.c
+++ b/src/daemon/minimal_example.c
@@ -27,7 +27,9 @@
#include "config.h"
#include <microhttpd.h>
#include <stdlib.h>
+#ifndef MINGW
#include <unistd.h>
+#endif
#include <string.h>
#include <stdio.h>