summaryrefslogtreecommitdiff
path: root/misc/llama-cpp/files/patch-ggml_src_CMakeLists.txt
blob: 8135824e1b8b465095746892ad93ee99910c8172 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
- workaround for https://github.com/ggerganov/llama.cpp/issues/11095

--- ggml/src/CMakeLists.txt.orig	2025-01-06 00:37:35 UTC
+++ ggml/src/CMakeLists.txt
@@ -152,15 +152,6 @@ endif()
 # posix_memalign came in POSIX.1-2001 / SUSv3
 # M_PI is an XSI extension since POSIX.1-2001 / SUSv3, came in XPG1 (1985)
 
-# Somehow in OpenBSD whenever POSIX conformance is specified
-# some string functions rely on locale_t availability,
-# which was introduced in POSIX.1-2008, forcing us to go higher
-if (CMAKE_SYSTEM_NAME MATCHES "OpenBSD")
-    add_compile_definitions(_XOPEN_SOURCE=700)
-else()
-    add_compile_definitions(_XOPEN_SOURCE=600)
-endif()
-
 # Data types, macros and functions related to controlling CPU affinity and
 # some memory allocation are available on Linux through GNU extensions in libc
 if (CMAKE_SYSTEM_NAME MATCHES "Linux" OR CMAKE_SYSTEM_NAME MATCHES "Android")