changeset 6477:360953cb921b

fix compilation of curl by setting macro HAVE_LONGLONG
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 24 Nov 2025 15:37:02 +0100
parents f5cbafc741dd
children a9abcdac2eee f44c708caf25
files OrthancFramework/Resources/CMake/LibCurlConfiguration.cmake
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancFramework/Resources/CMake/LibCurlConfiguration.cmake	Thu Nov 20 13:08:09 2025 +0100
+++ b/OrthancFramework/Resources/CMake/LibCurlConfiguration.cmake	Mon Nov 24 15:37:02 2025 +0100
@@ -181,6 +181,10 @@
     check_type_size("off_t"  SIZEOF_OFF_T)
     check_type_size("socklen_t" CURL_SIZEOF_CURL_SOCKLEN_T)
 
+    if (SIZEOF_LONG_LONG)
+      set(HAVE_LONGLONG 1)
+    endif()
+
     check_function_exists("accept4"       HAVE_ACCEPT4)
     check_function_exists("fnmatch"       HAVE_FNMATCH)
     check_symbol_exists("basename"        "${CURL_INCLUDES};string.h" HAVE_BASENAME)  # libgen.h unistd.h