[systemd-devel] [PATCH 2/2] missing.h: Define IFA_F_NOPREFIXROUTE

Alexander Sverdlin alexander.sverdlin at gmail.com
Tue Apr 7 14:05:50 PDT 2015


IFA_F_NOPREFIXROUTE is a usual #define appeared in Linux 3.14, so AC_CHECK_DECLS
is not necessary
---

Fixes second systemd compilation problem against Linux 3.12 uapi headers.

 src/shared/missing.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/shared/missing.h b/src/shared/missing.h
index 86c917b..e029167 100644
--- a/src/shared/missing.h
+++ b/src/shared/missing.h
@@ -866,6 +866,10 @@ static inline int setns(int fd, int nstype) {
 #define IFA_MAX (__IFA_MAX - 1)
 #endif

+#ifndef IFA_F_NOPREFIXROUTE
+#define IFA_F_NOPREFIXROUTE 0x200
+#endif
+
 #ifndef MAX_AUDIT_MESSAGE_LENGTH
 #define MAX_AUDIT_MESSAGE_LENGTH 8970
 #endif


More information about the systemd-devel mailing list