aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/_null.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/sys/_null.h b/sys/sys/_null.h
index 36552546e2b11..6059f578590a2 100644
--- a/sys/sys/_null.h
+++ b/sys/sys/_null.h
@@ -28,10 +28,14 @@
#ifndef NULL
+#ifdef _KERNEL
+#define NULL (void *)0
+#else
#if defined(__LP64__) || defined(__amd64__)
#define NULL 0L
#else
#define NULL 0
#endif
+#endif /* _KERNEL */
#endif