public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] RTEMS: Declare ioctl() also if _KERNEL is defined
@ 2022-07-08  4:58 Sebastian Huber
  0 siblings, 0 replies; only message in thread
From: Sebastian Huber @ 2022-07-08  4:58 UTC (permalink / raw)
  To: newlib-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=4ab39e0a85a0fa9ddab6a179040b24dbfabd87ad

commit 4ab39e0a85a0fa9ddab6a179040b24dbfabd87ad
Author: Sebastian Huber <sebastian.huber@embedded-brains.de>
Date:   Wed Jul 6 16:42:28 2022 +0200

    RTEMS: Declare ioctl() also if _KERNEL is defined
    
    This fixes the following warning in libbsd:
    
    rtems/blkdev.h:200:10: warning: implicit declaration of function 'ioctl'; did
      you mean 'ifioctl'? [-Wimplicit-function-declaration]
    
    Remove unnecessary includes.

Diff:
---
 newlib/libc/sys/rtems/include/sys/ioccom.h | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/newlib/libc/sys/rtems/include/sys/ioccom.h b/newlib/libc/sys/rtems/include/sys/ioccom.h
index 2a8416c41..1044a27e9 100644
--- a/newlib/libc/sys/rtems/include/sys/ioccom.h
+++ b/newlib/libc/sys/rtems/include/sys/ioccom.h
@@ -36,7 +36,6 @@
 #define	_SYS_IOCCOM_H_
 
 #include <sys/types.h>
-#include <stdint.h>
 
 typedef unsigned long ioctl_command_t;
 
@@ -80,14 +79,10 @@ typedef unsigned long ioctl_command_t;
 #define	IOCPARM_IVAL(x)	((int)(intptr_t)(void *)*(caddr_t *)(void *)(x))
 #endif
 
-#else
-
-#include <sys/cdefs.h>
+#endif
 
 __BEGIN_DECLS
 int	ioctl(int, ioctl_command_t, ...);
 __END_DECLS
 
-#endif
-
 #endif /* !_SYS_IOCCOM_H_ */


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-07-08  4:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-08  4:58 [newlib-cygwin] RTEMS: Declare ioctl() also if _KERNEL is defined Sebastian Huber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).