FIX: broken sun build

This commit is contained in:
Will Schroeder 2004-10-07 17:17:11 -04:00
parent 2aa1a1791f
commit 387ffe9419
2 changed files with 6 additions and 1 deletions

View File

@ -412,8 +412,10 @@ int main(void) {
return 0; return 0;
} }
#endif #endif
#ifdef HAVE_FILE_OFFSET_BITS
#ifdef _FILE_OFFSET_BITS #ifdef _FILE_OFFSET_BITS
#undef _FILE_OFFSET_BITS #undef _FILE_OFFSET_BITS
#endif
#define _FILE_OFFSET_BITS 64 #define _FILE_OFFSET_BITS 64
#include <sys/types.h> #include <sys/types.h>
/* Check that off_t can represent 2**63 - 1 correctly. /* Check that off_t can represent 2**63 - 1 correctly.

View File

@ -400,10 +400,13 @@ FOREACH(CURL_TEST
HAVE_INET_NTOA_R_DECL HAVE_INET_NTOA_R_DECL
HAVE_INET_NTOA_R_DECL_REENTRANT HAVE_INET_NTOA_R_DECL_REENTRANT
HAVE_GETADDRINFO HAVE_GETADDRINFO
_FILE_OFFSET_BITS HAVE_FILE_OFFSET_BITS
) )
CURL_INTERNAL_TEST(${CURL_TEST}) CURL_INTERNAL_TEST(${CURL_TEST})
ENDFOREACH(CURL_TEST) ENDFOREACH(CURL_TEST)
IF(HAVE_FILE_OFFSET_BITS)
SET(_FILE_OFFSET_BITS 64)
ENDIF(HAVE_FILE_OFFSET_BITS)
# Check for reentrant # Check for reentrant
FOREACH(CURL_TEST FOREACH(CURL_TEST