FIX: broken sun build
This commit is contained in:
parent
2aa1a1791f
commit
387ffe9419
|
@ -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.
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue