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 1d07e8a commit 77c224bCopy full SHA for 77c224b
CMakeModules/UseCompat.cmake
@@ -77,7 +77,11 @@ macro(USE_COMPAT)
77
elseif(NOT APPLE)
78
list(APPEND CMAKE_REQUIRED_LIBRARIES -lcrypt)
79
endif()
80
- check_symbol_exists(crypt_r "crypt.h;unistd.h" HAVE_CRYPT_R)
+ if(HAVE_CRYPT_H)
81
+ check_symbol_exists(crypt_r "crypt.h" HAVE_CRYPT_R)
82
+ else()
83
+ check_symbol_exists(crypt_r "unistd.h" HAVE_CRYPT_R)
84
+ endif()
85
86
test_big_endian(IS_BIG_ENDIAN)
87
0 commit comments