summaryrefslogtreecommitdiff
path: root/usr/src/common/util/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/common/util/string.c')
-rw-r--r--usr/src/common/util/string.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/usr/src/common/util/string.c b/usr/src/common/util/string.c
index d54b58d59c..0195aaa6e0 100644
--- a/usr/src/common/util/string.c
+++ b/usr/src/common/util/string.c
@@ -30,6 +30,7 @@
*/
#include <sys/types.h>
+#include <sys/null.h>
#include <sys/varargs.h>
#if defined(_KERNEL)
@@ -39,10 +40,6 @@
#include <string.h>
#endif
-#ifndef NULL
-#define NULL 0l
-#endif
-
#include "memcpy.h"
#include "string.h"