From 3327d6129896069fcaea00867d5adeaf85865c18 Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Thu, 30 May 2024 02:11:06 +0200 Subject: Lib: Fix BSD build --- lib/birdlib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/birdlib.h b/lib/birdlib.h index a520fdb3..8852b609 100644 --- a/lib/birdlib.h +++ b/lib/birdlib.h @@ -78,7 +78,7 @@ static inline int u64_cmp(u64 i1, u64 i2) #define NONNULL(...) __attribute__((nonnull(__VA_ARGS__))) #define ALLOC_SIZE(...) __attribute__((alloc_size(__VA_ARGS__))) -#if __GNUC_PREREQ(10, 0) +#if __GNUC__ >= 10 #define ACCESS_READ(...) __attribute__((access(read_only, __VA_ARGS__))) #define ACCESS_WRITE(...) __attribute__((access(write_only, __VA_ARGS__))) #define ACCESS_RW(...) __attribute__((access(read_write, __VA_ARGS__))) -- cgit v1.2.3