]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Lib: Fix BSD build
authorOndrej Zajicek <santiago@crfreenet.org>
Thu, 30 May 2024 00:11:06 +0000 (02:11 +0200)
committerOndrej Zajicek <santiago@crfreenet.org>
Thu, 30 May 2024 00:11:06 +0000 (02:11 +0200)
lib/birdlib.h

index a520fdb38d9fbd4344bb2dd5cfb6d8e53ede54f4..8852b609a61ee8ec7bfcc8c5c131658c370c656e 100644 (file)
@@ -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__)))