]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
cmake : Dont define XOPENSOURCE on AIX (llama/16481)
authorPrajwal B Mehendarkar <redacted>
Fri, 10 Oct 2025 08:15:46 +0000 (13:45 +0530)
committerGeorgi Gerganov <redacted>
Sun, 12 Oct 2025 08:16:23 +0000 (11:16 +0300)
ggml/src/CMakeLists.txt

index c8f3d8596427c95b67670a0117c8105f33c30f9f..892c23318a18e7b46b8b4e82991aa626708bf89d 100644 (file)
@@ -145,6 +145,9 @@ endif()
 # which was introduced in POSIX.1-2008, forcing us to go higher
 if (CMAKE_SYSTEM_NAME MATCHES "OpenBSD")
     add_compile_definitions(_XOPEN_SOURCE=700)
+elseif (CMAKE_SYSTEM_NAME MATCHES "AIX")
+    # Don't define _XOPEN_SOURCE.  We need _ALL_SOURCE, which is the default,
+    # in order to define _SC_PHYS_PAGES.
 else()
     add_compile_definitions(_XOPEN_SOURCE=600)
 endif()