Skip to contentSkip to conversation

compat: add net/net_namespace.h stub for Linux 2.6.23 and older

PATCH Applied Pavel Roskin 2 participants 2 messages Apr 7, 2010 Networking

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 compat: add net/net_namespace.h stub for Linux 2.6.23 and older

This obviates a good part of 06-header-changes.patch in compat-wireless.

---
 include/net/net_namespace.h |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
 create mode 100644 include/net/net_namespace.h
include/net/net_namespace.h new file +8 -0
new file mode 100644
index 0000000..206c0c1
@@ -0,0 +1,8 @@
+#ifndef _COMPAT_NET_NET_NAMESPACE_H
+#define _COMPAT_NET_NET_NAMESPACE_H 1
+
+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,23))
+#include_next <net/net_namespace.h>
+#endif /* (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,23)) */
+
+#endif	/* _COMPAT_NET_NET_NAMESPACE_H */