summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorjoerg <joerg@NetBSD.org>2012-08-08 20:23:32 +0000
committerjoerg <joerg@NetBSD.org>2012-08-08 20:23:32 +0000
commit82a9da4d04ab18748fb944038f8242cd3de93b88 (patch)
tree24fc77076373cf4a571bf2d2d702773976e4aa38 /include
parent876f0ed9d888058dc1f66bbb9d6f0693df8d3f75 (diff)
SSP mostly works with Clang, even if optimisation is disabled.
Explicitly disable it for Lint though.
Diffstat (limited to 'include')
-rw-r--r--include/ssp/ssp.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/ssp/ssp.h b/include/ssp/ssp.h
index fec1ce05bef..59e37f16a42 100644
--- a/include/ssp/ssp.h
+++ b/include/ssp/ssp.h
@@ -1,4 +1,4 @@
-/* $NetBSD: ssp.h,v 1.9 2011/02/21 00:40:08 joerg Exp $ */
+/* $NetBSD: ssp.h,v 1.10 2012/08/08 20:23:32 joerg Exp $ */
/*-
* Copyright (c) 2006, 2011 The NetBSD Foundation, Inc.
@@ -34,7 +34,8 @@
#include <sys/cdefs.h>
#if !defined(__cplusplus)
-# if _FORTIFY_SOURCE > 0 && __OPTIMIZE__ > 0 && __GNUC_PREREQ__(4, 1)
+# if _FORTIFY_SOURCE > 0 && !defined(__lint__) && \
+ (__OPTIMIZE__ > 0 || defined(__clang__)) && __GNUC_PREREQ__(4, 1)
# if _FORTIFY_SOURCE > 1
# define __SSP_FORTIFY_LEVEL 2
# else