diff --git a/CMakeLists.txt b/CMakeLists.txt index 7a4c0d525..2ba52a040 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1071,6 +1071,7 @@ check_type_size("long" SIZEOF_LONG) check_type_size("int" SIZEOF_INT) check_type_size("__int64" SIZEOF___INT64) check_type_size("time_t" SIZEOF_TIME_T) +check_type_size("suseconds_t" SIZEOF_SUSECONDS_T) if(NOT HAVE_SIZEOF_SSIZE_T) if(SIZEOF_LONG EQUAL SIZEOF_SIZE_T) set(ssize_t long) @@ -1081,9 +1082,12 @@ if(NOT HAVE_SIZEOF_SSIZE_T) endif() # off_t is sized later, after the HAVE_FILE_OFFSET_BITS test -if(HAVE_SIZEOF_LONG_LONG) +if(SIZEOF_LONG_LONG) set(HAVE_LONGLONG 1) endif() +if(SIZEOF_SUSECONDS_T) + set(HAVE_SUSECONDS_T 1) +endif() if(NOT CMAKE_CROSSCOMPILING) find_file(RANDOM_FILE urandom /dev) diff --git a/lib/curl_config.h.cmake b/lib/curl_config.h.cmake index e0c32e0cc..528cad4ef 100644 --- a/lib/curl_config.h.cmake +++ b/lib/curl_config.h.cmake @@ -370,6 +370,9 @@ /* Define to 1 if the compiler supports the 'long long' data type. */ #cmakedefine HAVE_LONGLONG 1 +/* Define to 1 if you have the 'suseconds_t' data type. */ +#cmakedefine HAVE_SUSECONDS_T 1 + /* Define to 1 if you have the MSG_NOSIGNAL flag. */ #cmakedefine HAVE_MSG_NOSIGNAL 1