summaryrefslogtreecommitdiff
path: root/lib/libc/stdio/perror.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/stdio/perror.c')
-rw-r--r--lib/libc/stdio/perror.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/stdio/perror.c b/lib/libc/stdio/perror.c
index 63c708a9..ad314038 100644
--- a/lib/libc/stdio/perror.c
+++ b/lib/libc/stdio/perror.c
@@ -1,5 +1,7 @@
+#include "stddef.h" // for NULL
+
#include <errno.h> // for errno
-#include <stdio.h> // for NULL, perror
+#include <stdio.h> // for perror
#include <string.h> // for strlen, strerror
#include <sys/uio.h> // for iovec, writev
#include <unistd.h> // for STDERR_FILENO