diff options
author | Daniel Stenberg <daniel@haxx.se> | 2000-06-14 14:28:45 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2000-06-14 14:28:45 +0000 |
commit | 022f1766f9c56b59c83cf9abccb3a47c18b6a181 (patch) | |
tree | 89da56850c32cc13c353e46d7b54a607ccfce2b8 /src | |
parent | 3e20192ff25453e12229a62f3b0fbb36da6b1e1c (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.m32 | 2 | ||||
-rw-r--r-- | src/config-win32.h | 16 |
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 |