summaryrefslogtreecommitdiffstats
path: root/Source/CTest/Curl
diff options
context:
space:
mode:
authorWill Schroeder <will.schroeder@kitware.com>2004-10-07 21:17:11 (GMT)
committerWill Schroeder <will.schroeder@kitware.com>2004-10-07 21:17:11 (GMT)
commit387ffe941959ab8fa849e5afbe654b15fa9447fe (patch)
tree241b844bbd6bd9a24bb258979c1e87aeb731cb95 /Source/CTest/Curl
parent2aa1a1791f94e06ae106ca1264bb7cb11a80ce7b (diff)
downloadCMake-387ffe941959ab8fa849e5afbe654b15fa9447fe.zip
CMake-387ffe941959ab8fa849e5afbe654b15fa9447fe.tar.gz
CMake-387ffe941959ab8fa849e5afbe654b15fa9447fe.tar.bz2
FIX: broken sun build
Diffstat (limited to 'Source/CTest/Curl')
-rw-r--r--Source/CTest/Curl/CMake/CurlTests.c2
-rw-r--r--Source/CTest/Curl/CMakeLists.txt5
2 files changed, 6 insertions, 1 deletions
diff --git a/Source/CTest/Curl/CMake/CurlTests.c b/Source/CTest/Curl/CMake/CurlTests.c
index 5254716..fba8dc4 100644
--- a/Source/CTest/Curl/CMake/CurlTests.c
+++ b/Source/CTest/Curl/CMake/CurlTests.c
@@ -412,8 +412,10 @@ int main(void) {
return 0;
}
#endif
+#ifdef HAVE_FILE_OFFSET_BITS
#ifdef _FILE_OFFSET_BITS
#undef _FILE_OFFSET_BITS
+#endif
#define _FILE_OFFSET_BITS 64
#include <sys/types.h>
/* Check that off_t can represent 2**63 - 1 correctly.
diff --git a/Source/CTest/Curl/CMakeLists.txt b/Source/CTest/Curl/CMakeLists.txt
index deadb96..3d2880c 100644
--- a/Source/CTest/Curl/CMakeLists.txt
+++ b/Source/CTest/Curl/CMakeLists.txt
@@ -400,10 +400,13 @@ FOREACH(CURL_TEST
HAVE_INET_NTOA_R_DECL
HAVE_INET_NTOA_R_DECL_REENTRANT
HAVE_GETADDRINFO
- _FILE_OFFSET_BITS
+ HAVE_FILE_OFFSET_BITS
)
CURL_INTERNAL_TEST(${CURL_TEST})
ENDFOREACH(CURL_TEST)
+IF(HAVE_FILE_OFFSET_BITS)
+ SET(_FILE_OFFSET_BITS 64)
+ENDIF(HAVE_FILE_OFFSET_BITS)
# Check for reentrant
FOREACH(CURL_TEST