cmake : remove explicit _XOPEN_SOURCE

This commit is contained in:
Georgi Gerganov 2025-01-06 13:02:48 +02:00
parent eb76b84252
commit 9605c5fb28
No known key found for this signature in database
GPG Key ID: 449E073F9DC10735

View File

@ -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