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 80a076c436..1388f5772e 100644
--- a/usr/src/common/util/string.c
+++ b/usr/src/common/util/string.c
@@ -31,6 +31,7 @@
*/
#include <sys/types.h>
+#include <sys/null.h>
#include <sys/varargs.h>
#if defined(_KERNEL)
@@ -40,10 +41,6 @@
#include <string.h>
#endif
-#ifndef NULL
-#define NULL 0l
-#endif
-
#include "memcpy.h"
#include "string.h"