From 9605c5fb281568c0ed0e3f1060bf47f4c4e5efec Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Mon, 6 Jan 2025 13:02:48 +0200 Subject: [PATCH] cmake : remove explicit _XOPEN_SOURCE --- ggml/src/CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ggml/src/CMakeLists.txt b/ggml/src/CMakeLists.txt index 84101c32c..4c60b365a 100644 --- a/ggml/src/CMakeLists.txt +++ b/ggml/src/CMakeLists.txt @@ -155,11 +155,11 @@ endif() # 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() +#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