[systemd-commits] src/shared
David Herrmann
dvdhrm at kemper.freedesktop.org
Thu Dec 4 10:26:13 PST 2014
src/shared/missing.h | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 1cb636d92d5f40fed65d8a3a8f71a946f6a84e1e
Author: Colin Walters <walters at verbum.org>
Date: Thu Dec 4 13:12:40 2014 -0500
missing: define NET_NAME_UNKNOWN
It's only exposed to userspace since
commit 685343fc3ba61a1f6eef361b786601123db16c28
Author: Tom Gundersen <teg at jklm.no>
AuthorDate: Mon Jul 14 16:37:22 2014 +0200
Commit: David S. Miller <davem at davemloft.net>
CommitDate: Tue Jul 15 16:12:01 2014 -0700
to the kernel.
diff --git a/src/shared/missing.h b/src/shared/missing.h
index a56d265..cf73877 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
More information about the systemd-commits
mailing list