summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tools/db-merger.c7
-rw-r--r--src/tools/epona2anope.c7
2 files changed, 12 insertions, 2 deletions
diff --git a/src/tools/db-merger.c b/src/tools/db-merger.c
index fec9ec9d4..1c8a2d7bc 100644
--- a/src/tools/db-merger.c
+++ b/src/tools/db-merger.c
@@ -25,11 +25,16 @@
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
-#include <unistd.h>
#include <fcntl.h>
#include <ctype.h>
#include <time.h>
+#ifndef _WIN32
+ #include <unistd.h>
+#else
+ #include "sysconf.h"
+#endif
+
/* CONFIGURATION BLOCK */
#define NICK_DB_1 "nick1.db"
diff --git a/src/tools/epona2anope.c b/src/tools/epona2anope.c
index 56f098368..5ac3cfe8f 100644
--- a/src/tools/epona2anope.c
+++ b/src/tools/epona2anope.c
@@ -25,11 +25,16 @@
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
-#include <unistd.h>
#include <fcntl.h>
#include <ctype.h>
#include <time.h>
+#ifndef _WIN32
+ #include <unistd.h>
+#else
+ #include "sysconf.h"
+#endif
+
/* CONFIGURATION BLOCK */
#define CHAN_DB_EPONA "chan1.db"