mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-19 04:49:25 +08:00
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.
This commit is contained in:
parent
5d4f405d3b
commit
4ab39e0a85
@ -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_ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user