compat: add net/net_namespace.h stub for Linux 2.6.23 and older
authorPavel Roskin <proski@gnu.org>
Wed, 7 Apr 2010 05:26:52 +0000 (01:26 -0400)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Wed, 7 Apr 2010 07:07:23 +0000 (00:07 -0700)
This obviates a good part of 06-header-changes.patch in compat-wireless.

Signed-off-by: Pavel Roskin <proski@gnu.org>
include/net/net_namespace.h [new file with mode: 0644]

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