Skip to content

Commit

Permalink
devel/libbson: fix errors reported by pkg-fallout
Browse files Browse the repository at this point in the history
PR:		269420
Reported by:	ports@bsdserwis.com (maintainer)
Reviewed by:	Hiroo Ono
  • Loading branch information
Krzysztof authored and fernape committed Feb 10, 2023
1 parent ad0cc58 commit 541c1ce
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions devel/libbson/Makefile
@@ -1,5 +1,6 @@
PORTNAME= libbson
PORTVERSION= 1.23.2
PORTREVISION= 1
CATEGORIES= devel

MAINTAINER= ports@bsdserwis.com
Expand Down
13 changes: 13 additions & 0 deletions devel/libbson/files/patch-CMakeLists.txt
@@ -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

0 comments on commit 541c1ce

Please sign in to comment.