summaryrefslogtreecommitdiff
path: root/io/fcntl.h
diff options
context:
space:
mode:
Diffstat (limited to 'io/fcntl.h')
-rw-r--r--io/fcntl.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/io/fcntl.h b/io/fcntl.h
index c89bf625bf..330bb30885 100644
--- a/io/fcntl.h
+++ b/io/fcntl.h
@@ -211,8 +211,9 @@ extern int posix_fallocate64 (int __fd, __off64_t __offset, __off64_t __len);
#endif
-/* Define some macros helping to catch common problems. */
-#if __USE_FORTIFY_LEVEL > 0 && !defined __cplusplus
+/* Define some inlines helping to catch common problems. */
+#if __USE_FORTIFY_LEVEL > 0 && defined __extern_always_inline \
+ && defined __va_arg_pack_len
# include <bits/fcntl2.h>
#endif