forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
depends: add zeromq mktemp macos patch
- Loading branch information
Showing
2 changed files
with
20 additions
and
2 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
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,16 @@ | ||
build: fix mkdtemp check on macOS | ||
|
||
On macOS, mkdtemp is in unistd.h. Fix the CMake check so that is works. | ||
Upstreamed in https://github.com/zeromq/libzmq/pull/4668. | ||
|
||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -599,7 +599,7 @@ if(NOT MSVC) | ||
|
||
check_cxx_symbol_exists(fork unistd.h HAVE_FORK) | ||
check_cxx_symbol_exists(gethrtime sys/time.h HAVE_GETHRTIME) | ||
- check_cxx_symbol_exists(mkdtemp stdlib.h HAVE_MKDTEMP) | ||
+ check_cxx_symbol_exists(mkdtemp "stdlib.h;unistd.h" HAVE_MKDTEMP) | ||
check_cxx_symbol_exists(accept4 sys/socket.h HAVE_ACCEPT4) | ||
check_cxx_symbol_exists(strnlen string.h HAVE_STRNLEN) | ||
else() |