From 938a72b2dba019eb81d942fbe85cf401a7014d21 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 2 Jun 2004 11:36:07 +0000 Subject: Gisle's adjustments to allow building with lcc-win32 --- lib/config-win32.h | 8 +++++++- lib/setup.h | 3 ++- lib/timeval.h | 3 ++- 3 files changed, 11 insertions(+), 3 deletions(-) (limited to 'lib') 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 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; -- cgit v1.2.3