summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2021-11-19 18:40:44 +0100
committerAlejandro Colomar <alx.manpages@gmail.com>2021-11-20 17:04:28 +0100
commit98cd145d390fe45eebee9d4da6daaadd04e0adb2 (patch)
treea32f63fe7f987f761bf16e86f979cdc6cfdfb8cd
parent4e0daa8e9636e8c5cb88dbf1e0aac144fb3c3234 (diff)
tools/include/nolibc/: Don't redefine NULL
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
-rw-r--r--tools/include/nolibc/nolibc.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/include/nolibc/nolibc.h b/tools/include/nolibc/nolibc.h
index 3430667b0d24..dc15907b2d87 100644
--- a/tools/include/nolibc/nolibc.h
+++ b/tools/include/nolibc/nolibc.h
@@ -86,6 +86,7 @@
#include <asm/errno.h>
#include <linux/fs.h>
#include <linux/loop.h>
+#include <linux/NULL.h>
#include <linux/time.h>
#define NOLIBC
@@ -108,8 +109,6 @@ static int errno;
* stdint.h, ctype.h, unistd.h and a few other common locations.
*/
-#define NULL ((void *)0)
-
/* stdint types */
typedef unsigned char uint8_t;
typedef signed char int8_t;