package/dhcp/S80dhcp-server: allow empty INTERFACES
[buildroot-gz.git] / package / btrfs-progs / 0002-configure-refactor-always_inline-detection.patch
blobf54d2501a25e10e1c3faff3f45bcdcc363dcf663
1 From 1d99ae25bb1bd4879c6f20f607faf3040018ee84 Mon Sep 17 00:00:00 2001
2 From: Brendan Heading <brendanheading@gmail.com>
3 Date: Thu, 30 Jul 2015 15:44:52 +0100
4 Subject: [PATCH 2/3] configure: refactor always_inline detection
6 Use configure.ac to detect the availability of the always_inline glibc
7 macro, and define it only if it does not exist.
9 Signed-off-by: Brendan Heading <brendanheading@gmail.com>
10 ---
11 configure.ac | 1 +
12 kerncompat.h | 2 +-
13 2 files changed, 2 insertions(+), 1 deletion(-)
15 diff --git a/configure.ac b/configure.ac
16 index e936a10..d3d81a1 100644
17 --- a/configure.ac
18 +++ b/configure.ac
19 @@ -41,6 +41,7 @@ AC_PATH_PROG([RMDIR], [rmdir], [rmdir])
21 AC_CHECK_FUNCS([openat], [],
22 [AC_MSG_ERROR([cannot find openat() function])])
23 +AC_CHECK_DECLS([__always_inline])
25 m4_ifndef([PKG_PROG_PKG_CONFIG],
26 [m4_fatal([Could not locate the pkg-config autoconf
27 diff --git a/kerncompat.h b/kerncompat.h
28 index 8318665..757b9b4 100644
29 --- a/kerncompat.h
30 +++ b/kerncompat.h
31 @@ -32,7 +32,7 @@
33 #include <features.h>
35 -#ifndef __GLIBC__
36 +#ifndef HAVE_DECL___ALWAYS_INLINE
37 #define __always_inline __inline __attribute__ ((__always_inline__))
38 #endif
40 --
41 2.4.3