summaryrefslogtreecommitdiff
path: root/src/shared/missing.h
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2014-12-04 13:12:40 -0500
committerDavid Herrmann <dh.herrmann@gmail.com>2014-12-04 19:24:46 +0100
commit1cb636d92d5f40fed65d8a3a8f71a946f6a84e1e (patch)
treefd1de463d32240940b3cfb9dbe2051e1f62766e5 /src/shared/missing.h
parent7eb08da4b388b920c8a894b1500c9cc7dc1f31ef (diff)
missing: define NET_NAME_UNKNOWN
It's only exposed to userspace since commit 685343fc3ba61a1f6eef361b786601123db16c28 Author: Tom Gundersen <teg@jklm.no> AuthorDate: Mon Jul 14 16:37:22 2014 +0200 Commit: David S. Miller <davem@davemloft.net> CommitDate: Tue Jul 15 16:12:01 2014 -0700 to the kernel.
Diffstat (limited to 'src/shared/missing.h')
-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 a56d265500..cf7387751c 100644
--- a/src/shared/missing.h
+++ b/src/shared/missing.h
@@ -566,6 +566,10 @@ static inline int setns(int fd, int nstype) {
# define NET_ADDR_RANDOM 1
#endif
+#ifndef NET_NAME_UNKNOWN
+# define NET_NAME_UNKNOWN 0
+#endif
+
#ifndef NET_NAME_ENUM
# define NET_NAME_ENUM 1
#endif