[PATCH v2 5/8] libc: Purge unneeded cdefs.h

Sebastian Huber <[email protected]> Sat, 20 Jun 2026 11:52:07 +0200
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
From: Warner Losh <[email protected]>

These sys/cdefs.h are not needed. Purge them. They are mostly left-over
from the $FreeBSD$ removal. A few in libc are still required for macros
that cdefs.h defines. Keep those.

Sponsored by:		Netflix
Differential Revision:	https://reviews.freebsd.org/D42385
---
 newlib/libc/stdlib/imaxdiv.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/newlib/libc/stdlib/imaxdiv.c b/newlib/libc/stdlib/imaxdiv.c
index 045ba2948..70808bcc1 100644
--- a/newlib/libc/stdlib/imaxdiv.c
+++ b/newlib/libc/stdlib/imaxdiv.c
@@ -26,7 +26,6 @@
  * SUCH DAMAGE.
  */
=20
-#include <sys/cdefs.h>
 #include <inttypes.h>
 #include <stdint.h>
=20
--=20
2.51.0