aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.m322
-rw-r--r--src/config-win32.h16
2 files changed, 14 insertions, 4 deletions
diff --git a/src/Makefile.m32 b/src/Makefile.m32
index 41b840c3d..0221047a1 100644
--- a/src/Makefile.m32
+++ b/src/Makefile.m32
@@ -19,7 +19,7 @@ OPENSSL_PATH = ../../openssl-0.9.5a
## Nothing more to do below this line!
INCLUDES = -I. -I.. -I../include
-CFLAGS = -g -O2
+CFLAGS = -g -O2 -DMINGW32
LDFLAGS =
COMPILE = $(CC) $(INCLUDES) $(CFLAGS)
LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@
diff --git a/src/config-win32.h b/src/config-win32.h
index 55d3e3a5f..116c93509 100644
--- a/src/config-win32.h
+++ b/src/config-win32.h
@@ -8,11 +8,21 @@
/* Define cpu-machine-OS */
#define OS "win32"
-/* Define if you have the <unistd.h> header file. */
-#define HAVE_UNISTD_H 1
-
/* Define if you have the <io.h> header file. */
#define HAVE_IO_H 1
/* Define if you have the strdup function. */
#define HAVE_STRDUP 1
+
+/* Define if you have the <fcntl.h> header file. */
+#define HAVE_FCNTL_H 1
+
+/*************************************************
+ * This section is for compiler specific defines.*
+ *************************************************/
+#ifdef MINGW32 /* Borland and MS don't have this */
+
+/* Define if you have the <unistd.h> header file. */
+#define HAVE_UNISTD_H 1
+
+#endif