Linux-2.4 prefers slab.h
authorDavid Schleef <ds@schleef.org>
Sat, 1 Dec 2001 00:34:53 +0000 (00:34 +0000)
committerDavid Schleef <ds@schleef.org>
Sat, 1 Dec 2001 00:34:53 +0000 (00:34 +0000)
include/linux/slab.h [new file with mode: 0644]

diff --git a/include/linux/slab.h b/include/linux/slab.h
new file mode 100644 (file)
index 0000000..ec2453a
--- /dev/null
@@ -0,0 +1,17 @@
+/*
+ * linux/slab.h compatibility header
+ */
+
+#ifndef __COMPAT_LINUX_SLAB_H_
+#define __COMPAT_LINUX_SLAB_H_
+
+#include <linux/version.h>
+
+#if LINUX_VERSION_CODE < 0x020400
+#include <linux/malloc.h>
+#else
+#include_next <linux/slab.h>
+#endif
+
+#endif
+