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>
13 2 files changed, 2 insertions(+), 1 deletion(-)
15 diff --git a/configure.ac b/configure.ac
16 index e936a10..d3d81a1 100644
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
36 +#ifndef HAVE_DECL___ALWAYS_INLINE
37 #define __always_inline __inline __attribute__ ((__always_inline__))