← Commit list

ec9a5e608

Denys Vlasenko
Denys Vlasenko
2020-12-29
SUCCESS Duration: 154s

Subject

libiproute: band-aid for old uclibc missing IFA_FLAGS

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

networking/libiproute/ipaddress.c+6 -1
@@ -21,10 +21,15 @@
#define IFF_LOWER_UP 0x10000 /* driver signals L1 up */
#endif
+/* for old uclibc */
#ifndef IFA_F_NOPREFIXROUTE
# define IFA_FLAGS 8
-/* ifa_flags */
# define IFA_F_NOPREFIXROUTE 0x200
+enum { /* can't do this with preporcessor, IFA_MAX is an (enum - 1), not preprocessor constant */
+ REAL_IFA_MAX = (IFA_MAX >= IFA_FLAGS) ? IFA_MAX : IFA_FLAGS,
+};
+# undef IFA_MAX
+# define IFA_MAX REAL_IFA_MAX
#endif
struct filter_t {