From 8842f2a01e7848f512c396fd990578a10770d9f4 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Mon, 7 Jan 2019 21:04:48 -0500 Subject: [PATCH] freebsd_network: GCC2 fixes. --- src/libs/compat/freebsd_network/compat/sys/cdefs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/compat/freebsd_network/compat/sys/cdefs.h b/src/libs/compat/freebsd_network/compat/sys/cdefs.h index 6873e4d443..3f9fbbb77c 100644 --- a/src/libs/compat/freebsd_network/compat/sys/cdefs.h +++ b/src/libs/compat/freebsd_network/compat/sys/cdefs.h @@ -235,14 +235,14 @@ #define __aligned(x) __attribute__((__aligned__(x))) #define __section(x) __attribute__((__section__(x))) #endif -#if __GNUC_PREREQ__(4, 3) || __has_attribute(__alloc_size__) +#if __GNUC_PREREQ__(4, 3) #define __alloc_size(x) __attribute__((__alloc_size__(x))) #define __alloc_size2(n, x) __attribute__((__alloc_size__(n, x))) #else #define __alloc_size(x) #define __alloc_size2(n, x) #endif -#if __GNUC_PREREQ__(4, 9) || __has_attribute(__alloc_align__) +#if __GNUC_PREREQ__(4, 9) #define __alloc_align(x) __attribute__((__alloc_align__(x))) #else #define __alloc_align(x)