From b226379a0c8e267e6335075cd06e0cfce561b583 Mon Sep 17 00:00:00 2001 From: pfg Date: Sun, 12 Apr 2015 16:43:55 +0000 Subject: [PATCH] Add definition for the gcc gnu_inline attribute. This uses a non-standard (who would guess that) inlining method that is useful for legacy GNU software. This attribute was added in GCC 4.1.3. Older versions of clang would just ignore the attribute but as lately it is supported also there. This is currently unused but it is required for the FORTIFY_SOURCE extension. --- sys/sys/cdefs.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h index fa0caa5fe4f8..553a8999648d 100644 --- a/sys/sys/cdefs.h +++ b/sys/sys/cdefs.h @@ -375,8 +375,10 @@ #endif #if __GNUC_PREREQ__(4, 1) +#define __gnu_inline __attribute__((__gnu_inline__)) #define __returns_twice __attribute__((__returns_twice__)) #else +#define __gnu_inline #define __returns_twice #endif