From: Colin Walters Date: Thu, 4 Dec 2014 18:12:40 +0000 (-0500) Subject: missing: define NET_NAME_UNKNOWN X-Git-Tag: v218~103 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=1cb636d92d5f40fed65d8a3a8f71a946f6a84e1e missing: define NET_NAME_UNKNOWN It's only exposed to userspace since commit 685343fc3ba61a1f6eef361b786601123db16c28 Author: Tom Gundersen AuthorDate: Mon Jul 14 16:37:22 2014 +0200 Commit: David S. Miller 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 a56d26550..cf7387751 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