1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00

devel/libbson: fix errors reported by pkg-fallout

PR:		269420
Reported by:	ports@bsdserwis.com (maintainer)
Reviewed by:	Hiroo Ono
This commit is contained in:
Krzysztof 2023-02-09 16:47:11 +01:00 committed by Fernando Apesteguía
parent ad0cc5850d
commit 541c1ce135
2 changed files with 14 additions and 0 deletions

View File

@ -1,5 +1,6 @@
PORTNAME= libbson
PORTVERSION= 1.23.2
PORTREVISION= 1
CATEGORIES= devel
MAINTAINER= ports@bsdserwis.com

View File

@ -0,0 +1,13 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index caaf53499..2dd8cc398 100644
--- a/CMakeLists.txt
+++ b/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