1 From e7de812c979d219765fbf1292f0e150bfa087716 Mon Sep 17 00:00:00 2001
2 From: "Yann E. MORIN" <yann.morin.1998@free.fr>
3 Date: Sun, 18 Jun 2017 21:54:16 +0200
4 Subject: [PATCH] configure: in cross-complation, assume eventfd are available
6 eventfd have been in the kernel since 2.6.22, and in glibc since 2.8,
7 repectively released in July 2007 and April 2008, almost a decade ago
10 Assume that no one building from now on for cross-compilation will be
11 unlucky enough to get versions older than that...
13 As such, in cross-compilation, assume eventfd are available.
15 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
18 1 file changed, 3 insertions(+), 1 deletion(-)
20 diff --git a/configure.ac b/configure.ac
21 index 1c20517864..474d17ae55 100644
24 @@ -1107,7 +1107,9 @@ AC_RUN_IFELSE(
25 [return eventfd(0, EFD_NONBLOCK | EFD_SEMAPHORE) == -1;])],
27 AC_DEFINE([HAVE_EVENTFD], 1, [Define to 1 if your system supports eventfd and the EFD_NONBLOCK and EFD_SEMAPHORE flags.]),
30 + AC_MSG_RESULT([cross-compile; assume yes])
31 + AC_DEFINE([HAVE_EVENTFD], 1, [Define to 1 if your system supports eventfd and the EFD_NONBLOCK and EFD_SEMAPHORE flags.])
34 AST_GCC_ATTRIBUTE(pure)