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

posix/unistd.h

index a86968a..476c1f3 100644 (file)
@@ -1096,7 +1096,7 @@ extern char *ctermid (char *__s) __THROW;
 
 
 /* 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/unistd.h>
 #endif