summaryrefslogtreecommitdiff
path: root/include/string.h
diff options
context:
space:
mode:
authorkristerw <kristerw@NetBSD.org>2007-08-02 21:49:09 +0000
committerkristerw <kristerw@NetBSD.org>2007-08-02 21:49:09 +0000
commit1ef79ebc7d0ea131e8544fc99329bebf7d962541 (patch)
treec15fc711808376b177f36a331214a1bca8e0ad3c /include/string.h
parent844b7f67f9066917fd497269d1d03a401cb3de02 (diff)
Do not include SSP files unless _FORTIFY_SOURCE > 0.
Diffstat (limited to 'include/string.h')
-rw-r--r--include/string.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/string.h b/include/string.h
index 9ed3714d39b..34b4ee61d2a 100644
--- a/include/string.h
+++ b/include/string.h
@@ -1,4 +1,4 @@
-/* $NetBSD: string.h,v 1.32 2007/05/30 21:14:37 tls Exp $ */
+/* $NetBSD: string.h,v 1.33 2007/08/02 21:49:10 kristerw Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -91,5 +91,7 @@ char *strndup(const char *, size_t);
#endif
__END_DECLS
+#if _FORTIFY_SOURCE > 0
#include <ssp/string.h>
+#endif
#endif /* !defined(_STRING_H_) */