configure: fixed detection of eventfd() with new compilers builds

This commit is contained in:
Evgeny Grin (Karlson2k)
2022-11-26 19:30:19 +03:00
parent 9d2994f1ea
commit 49c675a0e9
+1
View File
@@ -2032,6 +2032,7 @@ AS_IF([[test "x$enable_itc" = "xeventfd" || test "x$enable_itc" = "xauto"]], [
AC_LINK_IFELSE([
AC_LANG_PROGRAM([[
#include <sys/eventfd.h>
#include <unistd.h>
]], [[
int ef = eventfd(0, EFD_CLOEXEC | EFD_NONBLOCK);
if (ef < 0) return 1;