We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de918d4 commit 2617138Copy full SHA for 2617138
CMakeLists.txt
@@ -149,7 +149,12 @@ if (NOT MSVC)
149
check_function_exists(stat HAVE_STAT)
150
check_include_files(stdint.h HAVE_STDINT_H)
151
check_include_files(sys/mman.h HAVE_SYS_MMAN_H)
152
- check_include_files(sys/random.h HAVE_SYS_RANDOM_H)
+ if (APPLE)
153
+ # In old macOS SDKs (ex: 10.15), sys/random.h fails to include header files it needs, so add them here.
154
+ check_include_files("Availability.h;stddef.h;sys/random.h" HAVE_SYS_RANDOM_H)
155
+ else()
156
+ check_include_files(sys/random.h HAVE_SYS_RANDOM_H)
157
+ endif()
158
check_include_files(sys/select.h HAVE_SYS_SELECT_H)
159
check_include_files(sys/socket.h HAVE_SYS_SOCKET_H)
160
check_include_files(sys/stat.h HAVE_SYS_STAT_H)
0 commit comments