aboutsummaryrefslogtreecommitdiffstats
path: root/kerncompat.h
diff options
context:
space:
mode:
Diffstat (limited to 'kerncompat.h')
-rw-r--r--kerncompat.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/kerncompat.h b/kerncompat.h
index 8536832..c7aee68 100644
--- a/kerncompat.h
+++ b/kerncompat.h
@@ -189,6 +189,8 @@ static inline long IS_ERR(const void *ptr)
* kmalloc/kfree
*/
#define kmalloc(x, y) malloc(x)
+#define kzalloc(x, y) calloc(1, x)
+#define kstrdup(x, y) strdup(x)
#define kfree(x) free(x)
#define BUG_ON(c) do { if (c) abort(); } while (0)