Skip to content

Commit 1d07e8a

Browse files
committed
compat UPDATE crypt_r on freeBSD
1 parent 3df2643 commit 1d07e8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeModules/UseCompat.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ macro(USE_COMPAT)
7777
elseif(NOT APPLE)
7878
list(APPEND CMAKE_REQUIRED_LIBRARIES -lcrypt)
7979
endif()
80-
check_symbol_exists(crypt_r "crypt.h" HAVE_CRYPT_R)
80+
check_symbol_exists(crypt_r "crypt.h;unistd.h" HAVE_CRYPT_R)
8181

8282
test_big_endian(IS_BIG_ENDIAN)
8383

0 commit comments

Comments
 (0)