diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/config-win32.h | 8 | ||||
-rw-r--r-- | lib/setup.h | 3 | ||||
-rw-r--r-- | lib/timeval.h | 3 |
3 files changed, 11 insertions, 3 deletions
diff --git a/lib/config-win32.h b/lib/config-win32.h index 7eca94e44..b1463741e 100644 --- a/lib/config-win32.h +++ b/lib/config-win32.h @@ -1,6 +1,9 @@ /* config.h. Generated automatically by configure. */ /* config.h.in. Generated automatically from configure.in by autoheader. */ +#ifndef __CONFIG_WIN32_H +#define __CONFIG_WIN32_H + /* Define if on AIX 3. System headers sometimes define this. We just want to avoid a redefinition error message. */ @@ -223,9 +226,12 @@ /************************************************* * This section is for compiler specific defines.* *************************************************/ -#if defined(MINGW32) || defined(__WATCOMC__) /* Borland and MS don't have this */ +/* Borland and MS don't have this */ +#if defined(MINGW32) || defined(__WATCOMC__) || defined(__LCC__) /* Define if you have the <unistd.h> header file. */ #define HAVE_UNISTD_H 1 #endif + +#endif diff --git a/lib/setup.h b/lib/setup.h index 5677bba95..2243bc986 100644 --- a/lib/setup.h +++ b/lib/setup.h @@ -261,7 +261,8 @@ typedef int curl_socket_t; #error "ares does not yet support IPv6. Disable IPv6 or ares and rebuild" #endif -#if defined(WIN32) && !defined(__CYGWIN__) && !defined(USE_ARES) +#if defined(WIN32) && !defined(__CYGWIN__) && !defined(USE_ARES) && \ + !defined(__LCC__) /* lcc-win32 doesn't have _beginthreadex() */ #ifdef ENABLE_IPV6 #define USE_THREADING_GETADDRINFO #else diff --git a/lib/timeval.h b/lib/timeval.h index 856f5f4f6..67b885ac6 100644 --- a/lib/timeval.h +++ b/lib/timeval.h @@ -37,7 +37,8 @@ #endif #ifndef HAVE_GETTIMEOFDAY -#if !defined(_WINSOCKAPI_) && !defined(__MINGW32__) && !defined(_AMIGASF) +#if !defined(_WINSOCKAPI_) && !defined(__MINGW32__) && !defined(_AMIGASF) && \ + !defined(__LCC__) struct timeval { long tv_sec; long tv_usec; |