aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2026-02-02 16:26:17 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2026-02-02 16:41:18 +0000
commit1c00d5a3b234ef937d848956027e9de5ea8010f9 (patch)
treed50d2b4fa0be3c20815de3dc38156d9c24780167
parent404753664a5e145d98f1749d1c7bc046c8aa32c3 (diff)
libc: Fix missing include
Although not needed on FreeBSD due to namespace pollution, we should technically #include <stddef.h> to secure a definition of NULL. Fixes: 5074d5c9845e ("libc: Improve POSIX conformance of dirfd()")
-rw-r--r--lib/libc/gen/dirfd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/gen/dirfd.c b/lib/libc/gen/dirfd.c
index fbbf703b5a2e..984e69b9ae9a 100644
--- a/lib/libc/gen/dirfd.c
+++ b/lib/libc/gen/dirfd.c
@@ -29,6 +29,7 @@
#include "namespace.h"
#include <dirent.h>
#include <errno.h>
+#include <stddef.h>
#include "un-namespace.h"
#include "gen-private.h"