diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2024-05-30 02:11:06 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2024-05-30 02:11:06 +0200 |
commit | 3327d6129896069fcaea00867d5adeaf85865c18 (patch) | |
tree | 7cbc39d1420217baebb80a0007ddfdfa0a8219c7 | |
parent | c130b4e1aedfda8119b513ecaa82c7f7deda3228 (diff) |
Lib: Fix BSD build
-rw-r--r-- | lib/birdlib.h | 2 |
1 files changed, 1 insertions, 1 deletions
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__))) |