From 022f1766f9c56b59c83cf9abccb3a47c18b6a181 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 14 Jun 2000 14:28:45 +0000 Subject: Added a define in the Mingw32 makefiles to allow parts of the config-win32 files depend on that as well. It turned out Borland has no unistd.h file either, only mingw32 seems to use that. --- src/Makefile.m32 | 2 +- src/config-win32.h | 16 +++++++++++++--- 2 files changed, 14 insertions(+), 4 deletions(-) (limited to 'src') 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 header file. */ -#define HAVE_UNISTD_H 1 - /* Define if you have the header file. */ #define HAVE_IO_H 1 /* Define if you have the strdup function. */ #define HAVE_STRDUP 1 + +/* Define if you have the 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 header file. */ +#define HAVE_UNISTD_H 1 + +#endif -- cgit v1.2.3