diff mbox

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

Message ID 20100407052652.23137.84949.stgit@mj.roinet.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Pavel Roskin April 7, 2010, 5:26 a.m. UTC
None
diff mbox

Patch

diff --git a/include/net/net_namespace.h b/include/net/net_namespace.h
new file mode 100644
index 0000000..206c0c1
--- /dev/null
+++ b/include/net/net_namespace.h
@@ -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 */