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:
Sebastian Huber 2022-07-06 16:42:28 +02:00
parent 5d4f405d3b
commit 4ab39e0a85
1 changed files with 1 additions and 6 deletions

View File

@ -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_ */