projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f79fc3e
)
Linux-2.4 prefers slab.h
author
David Schleef
<ds@schleef.org>
Sat, 1 Dec 2001 00:34:53 +0000
(
00:34
+0000)
committer
David Schleef
<ds@schleef.org>
Sat, 1 Dec 2001 00:34:53 +0000
(
00:34
+0000)
include/linux/slab.h
[new file with mode: 0644]
patch
|
blob
diff --git a/include/linux/slab.h
b/include/linux/slab.h
new file mode 100644
(file)
index 0000000..
ec2453a
--- /dev/null
+++ b/
include/linux/slab.h
@@ -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
+