Fix RTEMS ioctl() declaration

Using uint32_t for ioctl_command_t does not work well on 64-bit targets.

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
This commit is contained in:
Sebastian Huber 2017-06-07 11:05:38 +02:00
parent dc93d7adff
commit e9085e0ccd
1 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@
#include <sys/types.h>
#include <stdint.h>
typedef uint32_t ioctl_command_t;
typedef unsigned long ioctl_command_t;
/*
* Ioctl's have the command encoded in the lower word, and the size of
@ -79,7 +79,7 @@ typedef uint32_t ioctl_command_t;
#include <sys/cdefs.h>
__BEGIN_DECLS
int ioctl(int, unsigned long, ...);
int ioctl(int, ioctl_command_t, ...);
__END_DECLS
#endif