summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Sverdlin <alexander.sverdlin@gmail.com>2015-04-08 12:59:40 +0200
committerLennart Poettering <lennart@poettering.net>2015-04-08 12:59:40 +0200
commitb06ac35c7979d965d977990e7626d9827dda2b45 (patch)
treee2e2f8a8a6a920ece2f0f6444dc2f1b8c1c9fbec
parentde79f906ab614dd0d53129c4d4aa18a964864f39 (diff)
missing.h: Define IFA_F_NOPREFIXROUTE
Fixes second systemd compilation problem against Linux 3.12 uapi headers. IFA_F_NOPREFIXROUTE is a usual #define appeared in Linux 3.14, so AC_CHECK_DECLS is not necessary.
-rw-r--r--src/shared/missing.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shared/missing.h b/src/shared/missing.h
index ae8405350d..8ca6f8edb6 100644
--- a/src/shared/missing.h
+++ b/src/shared/missing.h
@@ -863,6 +863,10 @@ static inline int setns(int fd, int nstype) {
#define IFA_FLAGS 8
#endif
+#ifndef IFA_F_NOPREFIXROUTE
+#define IFA_F_NOPREFIXROUTE 0x200
+#endif
+
#ifndef MAX_AUDIT_MESSAGE_LENGTH
#define MAX_AUDIT_MESSAGE_LENGTH 8970
#endif