Skip to content

Commit a3eb8c3

Browse files
authored
Check if alarm() is in unistd.h for cmake
1 parent f735a36 commit a3eb8c3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ check_function_exists(strsignal HAVE_DECL_STRSIGNAL)
187187
check_function_exists(_getpid HAVE__GETPID)
188188
check_function_exists(_strdup HAVE__STRDUP)
189189
check_function_exists(alarm HAVE_DECL_ALARM)
190+
check_symbol_exists(alarm unistd.h HAVE_ALARM_SYMBOL)
190191
if (HAVE_WINDOWS_H)
191192
check_function_exists(InitOnceBeginInitialize HAVE_INIT_ONCE_BEGIN_INITIALIZE)
192193
check_function_exists(InitOnceComplete HAVE_INIT_ONCE_COMPLETE)

0 commit comments

Comments
 (0)