From 8d60cc63163df81938305632e1b7474aeda17d52 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Mon, 3 Feb 2014 15:41:57 -0800 Subject: [PATCH] Use __inline__ for fortify. libunwind has #define inline /* empty */ which breaks our fortified headers. glibc uses __inline but our BSD-derived headers often override that. __inline__ is the third alternative understood by GCC that -- as far as I know -- neither the C library itself nor third-party code tries to mess with. Bug: 12871594 Change-Id: I6677e70ea531bb7d4c46021b43af760d4ad8ecf7 --- libc/include/sys/cdefs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/include/sys/cdefs.h b/libc/include/sys/cdefs.h index b4dad74f8..9fa62df72 100644 --- a/libc/include/sys/cdefs.h +++ b/libc/include/sys/cdefs.h @@ -546,7 +546,7 @@ #define __bos0(s) __builtin_object_size((s), 0) #define __BIONIC_FORTIFY_INLINE \ - extern inline \ + extern __inline__ \ __attribute__ ((always_inline)) \ __attribute__ ((gnu_inline)) #endif