OSDN Git Service

Use __inline__ for fortify.
authorElliott Hughes <enh@google.com>
Mon, 3 Feb 2014 23:41:57 +0000 (15:41 -0800)
committerElliott Hughes <enh@google.com>
Mon, 3 Feb 2014 23:41:57 +0000 (15:41 -0800)
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

index b4dad74..9fa62df 100644 (file)
 #define __bos0(s) __builtin_object_size((s), 0)
 
 #define __BIONIC_FORTIFY_INLINE \
-    extern inline \
+    extern __inline__ \
     __attribute__ ((always_inline)) \
     __attribute__ ((gnu_inline))
 #endif