]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Undeffing unix.
authorMaria Matejka <mq@ucw.cz>
Mon, 5 Jun 2023 15:24:49 +0000 (17:24 +0200)
committerMaria Matejka <mq@ucw.cz>
Mon, 5 Jun 2023 16:14:30 +0000 (18:14 +0200)
GCC defines, for historic reasons, unix as a numeric constant.
https://gcc.gnu.org/onlinedocs/cpp/System-specific-Predefined-Macros.html

nest/bird.h

index 55712abe82450c0d050846168f6f6a7a144bc976..272e4f7fd0e0eaa06871a36d91232cf96fe67085 100644 (file)
@@ -9,6 +9,8 @@
 #ifndef _BIRD_BIRD_H_
 #define _BIRD_BIRD_H_
 
+#undef unix /* An unneeded ancient C quirk */
+
 #include "sysdep/config.h"
 #include "lib/birdlib.h"
 #include "lib/ip.h"