Date: Thu, 05 Feb 2026 15:26:57 +0000 From: Dag-Erling=?utf-8?Q? Sm=C3=B8rg?=rav <des@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: e3d430c9147c - stable/15 - libc: Fix missing include Message-ID: <6984b6c1.3f255.63a42447@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch stable/15 has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=e3d430c9147ccedb51b2ac23d4bef90d7b6cfb41 commit e3d430c9147ccedb51b2ac23d4bef90d7b6cfb41 Author: Dag-Erling Smørgrav <des@FreeBSD.org> AuthorDate: 2026-02-02 16:26:17 +0000 Commit: Dag-Erling Smørgrav <des@FreeBSD.org> CommitDate: 2026-02-05 14:50:19 +0000 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()") (cherry picked from commit 1c00d5a3b234ef937d848956027e9de5ea8010f9) --- lib/libc/gen/dirfd.c | 1 + 1 file changed, 1 insertion(+) 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"home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6984b6c1.3f255.63a42447>
