summaryrefslogtreecommitdiffstats
path: root/newlib/libc
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-06-07 11:05:38 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-06-07 15:46:20 +0200
commite9085e0ccdad9014f44ea468d7ea49e4c2cdb02c (patch)
tree72f4f74b9e901efce24ed033fd8ca09912d17ff1 /newlib/libc
parentdc93d7adff298f8e3d1545b88c823942d40cbca3 (diff)
downloadcygnal-e9085e0ccdad9014f44ea468d7ea49e4c2cdb02c.tar.gz
cygnal-e9085e0ccdad9014f44ea468d7ea49e4c2cdb02c.tar.bz2
cygnal-e9085e0ccdad9014f44ea468d7ea49e4c2cdb02c.zip
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>
Diffstat (limited to 'newlib/libc')
-rw-r--r--newlib/libc/sys/rtems/include/sys/ioccom.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/sys/rtems/include/sys/ioccom.h b/newlib/libc/sys/rtems/include/sys/ioccom.h
index 9c5350d1e..2c0e9ee71 100644
--- a/newlib/libc/sys/rtems/include/sys/ioccom.h
+++ b/newlib/libc/sys/rtems/include/sys/ioccom.h
@@ -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