libc: improve include usage for exterror sources

Include sys/types.h by exterr.h, since size_t is used.
Drop include of sys/exterr_cat.h, it is useless for the only prototype
provided.

Reviewed by:	mckusick
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D55337
This commit is contained in:
Konstantin Belousov committed 2026-02-18 09:54:01 +02:00
1 parent a03f285afa
commit 1443a455a9
2 files changed
+2 -2

No files matched your search

+1 -2
View File
@@ -11,8 +11,7 @@
#ifndef _EXTERR_H_
#define _EXTERR_H_
#include <sys/cdefs.h>
#include <sys/exterr_cat.h>
#include <sys/types.h>
__BEGIN_DECLS
int uexterr_gettext(char *buf, size_t bufsz);
+1
View File
@@ -9,6 +9,7 @@
*/
#include <sys/param.h>
#include <sys/exterr_cat.h>
#include <sys/exterrvar.h>
#include <exterr.h>
#include <stdbool.h>