]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - package/asterisk/0004-configure-in-cross-complation-assimne-eventfd-are-av.patch
irssi: security bump to version 1.0.6
[coffee/buildroot.git] / package / asterisk / 0004-configure-in-cross-complation-assimne-eventfd-are-av.patch
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
5
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
8 now.
9
10 Assume that no one building from now on for cross-compilation will be
11 unlucky enough to get versions older than that...
12
13 As such, in cross-compilation, assume eventfd are available.
14
15 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
16 ---
17  configure.ac | 4 +++-
18  1 file changed, 3 insertions(+), 1 deletion(-)
19
20 diff --git a/configure.ac b/configure.ac
21 index 1c20517864..474d17ae55 100644
22 --- a/configure.ac
23 +++ b/configure.ac
24 @@ -1107,7 +1107,9 @@ AC_RUN_IFELSE(
25        [return eventfd(0, EFD_NONBLOCK | EFD_SEMAPHORE) == -1;])],
26    AC_MSG_RESULT(yes)
27    AC_DEFINE([HAVE_EVENTFD], 1, [Define to 1 if your system supports eventfd and the EFD_NONBLOCK and EFD_SEMAPHORE flags.]),
28 -  AC_MSG_RESULT(no)
29 +  AC_MSG_RESULT(no),
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.])
32  )
33  
34  AST_GCC_ATTRIBUTE(pure)
35 -- 
36 2.11.0
37