Include bits/syslog.h when __extern_always_inline is defined instead
authordrepper <drepper>
Sat, 15 Sep 2007 02:33:54 +0000 (02:33 +0000)
committerdrepper <drepper>
Sat, 15 Sep 2007 02:33:54 +0000 (02:33 +0000)
of when not __cplusplus.

misc/sys/syslog.h

index 4ed57c2..22da1ce 100644 (file)
@@ -203,7 +203,7 @@ extern void vsyslog (int __pri, __const char *__fmt, __gnuc_va_list __ap)
 
 
 /* Define some macros helping to catch buffer overflows.  */
 
 
 /* Define some macros helping to catch buffer overflows.  */
-#if __USE_FORTIFY_LEVEL > 0 && !defined __cplusplus
+#if __USE_FORTIFY_LEVEL > 0 && defined __extern_always_inline
 # include <bits/syslog.h>
 #endif
 #ifdef __LDBL_COMPAT
 # include <bits/syslog.h>
 #endif
 #ifdef __LDBL_COMPAT