git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
datapath: Define kmemdup() for kernels older than 2.6.19
[sliver-openvswitch.git]
/
datapath
/
linux-2.6
/
compat-2.6
/
include
/
linux
/
slab.h
diff --git a/datapath/linux-2.6/compat-2.6/include/linux/slab.h
b/datapath/linux-2.6/compat-2.6/include/linux/slab.h
new file mode 100644
(file)
index 0000000..
5c54c18
--- /dev/null
+++ b/
datapath/linux-2.6/compat-2.6/include/linux/slab.h
@@ -0,0
+1,10
@@
+#ifndef __LINUX_SLAB_WRAPPER_H
+#define __LINUX_SLAB_WRAPPER_H 1
+
+#include_next <linux/slab.h>
+
+#ifndef HAVE_KMEMDUP
+extern void *kmemdup(const void *src, size_t len, gfp_t gfp);
+#endif
+
+#endif