]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
missing.h: Define IFA_F_NOPREFIXROUTE
authorAlexander Sverdlin <alexander.sverdlin@gmail.com>
Wed, 8 Apr 2015 10:59:40 +0000 (12:59 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 8 Apr 2015 10:59:40 +0000 (12:59 +0200)
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.

src/shared/missing.h

index ae8405350de23f45f971a3e939bd34e2162eee8b..8ca6f8edb62c71fcbe5e2d4e621b10613404eccc 100644 (file)
@@ -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