diff options
| author | Kyle Evans <kevans@FreeBSD.org> | 2019-11-13 18:21:06 +0000 |
|---|---|---|
| committer | Kyle Evans <kevans@FreeBSD.org> | 2019-11-13 18:21:06 +0000 |
| commit | 4e0706cbdff434fd4153dca3738d30272e0f4594 (patch) | |
| tree | 85e6c3e60c33861f904177afa932e813cf30104c /lib/libc/secure | |
| parent | 301b49d2e52e9aed8d5b46062328d9127063f5b3 (diff) | |
Notes
Diffstat (limited to 'lib/libc/secure')
| -rw-r--r-- | lib/libc/secure/stack_protector.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/secure/stack_protector.c b/lib/libc/secure/stack_protector.c index f60df5fbf443..63c02cd96033 100644 --- a/lib/libc/secure/stack_protector.c +++ b/lib/libc/secure/stack_protector.c @@ -50,7 +50,7 @@ __FBSDID("$FreeBSD$"); * * This conditional should be removed when GCC 4.2 is removed. */ -#if defined(__clang__) || (defined(__GNUC__) && __GNUC__ > 4) +#if __has_attribute(__constructor__) || __GNUC_PREREQ__(4, 3) #define _GUARD_SETUP_CTOR_ATTR \ __attribute__((__constructor__ (200), __used__)); #else |
