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

Message ID 20260620095210.2530342-6-sebastian.huber@embedded-brains.de
State New
Headers
Series Synchronize *div() implementations with FreeBSD |

Commit Message

Sebastian Huber June 20, 2026, 9:52 a.m. UTC
  From: Warner Losh <imp@FreeBSD.org>

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(-)
  

Patch

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.
  */
 
-#include <sys/cdefs.h>
 #include <inttypes.h>
 #include <stdint.h>