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_
|
#define _SYS_IOCCOM_H_
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <stdint.h>
|
|
||||||
|
|
||||||
typedef unsigned long ioctl_command_t;
|
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))
|
#define IOCPARM_IVAL(x) ((int)(intptr_t)(void *)*(caddr_t *)(void *)(x))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#else
|
#endif
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
int ioctl(int, ioctl_command_t, ...);
|
int ioctl(int, ioctl_command_t, ...);
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* !_SYS_IOCCOM_H_ */
|
#endif /* !_SYS_IOCCOM_H_ */
|
||||||
|
|
Loading…
Reference in New Issue