Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
devel/libbson: fix errors reported by pkg-fallout
PR: 269420 Reported by: ports@bsdserwis.com (maintainer) Reviewed by: Hiroo Ono
- Loading branch information
Showing
2 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
PORTNAME= libbson | ||
PORTVERSION= 1.23.2 | ||
PORTREVISION= 1 | ||
CATEGORIES= devel | ||
|
||
MAINTAINER= ports@bsdserwis.com | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |