]> granicus.if.org Git - libevent/commitdiff
CheckWorkingKqueue.cmake: fix missing headers
authorChristopher Chavez <chrischavez@gmx.us>
Fri, 12 Nov 2021 02:12:14 +0000 (20:12 -0600)
committerChristopher Chavez <chrischavez@gmx.us>
Fri, 12 Nov 2021 03:28:10 +0000 (21:28 -0600)
Avoid implicitly declaring functions memset() and exit()
as it is considered an error by some compilers
(e.g. Xcode clang 12 and later)

cmake/CheckWorkingKqueue.cmake

index f22f011b5875020a5c060a1d8e045ca099c3d0c9..2f482783c6cfe2c2005261854291dc5641030f7e 100644 (file)
@@ -2,6 +2,8 @@ include(CheckCSourceRuns)
 
 check_c_source_runs(
 "
+#include <stdlib.h>
+#include <string.h>
 #include <sys/types.h>
 #include <sys/time.h>
 #include <sys/event.h>