opnsense-ports/devel/libbson/files/patch-CMakeLists.txt
Franco Fichtner 1049d1b8c3 */*: sync with upstream
Taken from: FreeBSD
2023-02-21 15:58:16 +01:00

11 lines
684 B
Text

--- CMakeLists.txt.orig 2023-01-03 15:52:56 UTC
+++ CMakeLists.txt
@@ -249,7 +249,7 @@ cmake_policy (SET CMP0042 NEW)
# Both _BSD_SOURCE and _DEFAULT_SOURCE are defined for backwards-compatibility with glibc 2.19 and earlier.
# _BSD_SOURCE and _DEFAULT_SOURCE are required by `getpagesize`, `h_errno`, etc.
# _XOPEN_SOURCE=700 is required by `strnlen`, etc.
-add_definitions (-D_XOPEN_SOURCE=700 -D_BSD_SOURCE -D_DEFAULT_SOURCE)
+# add_definitions (-D_XOPEN_SOURCE=700 -D_BSD_SOURCE -D_DEFAULT_SOURCE)
list (APPEND CMAKE_REQUIRED_DEFINITIONS -D_XOPEN_SOURCE=700 -D_BSD_SOURCE -D_DEFAULT_SOURCE)
# https://opensource.apple.com/source/Libc/Libc-1439.40.11/gen/compat.5.auto.html