]> sourceware.org Git - newlib-cygwin.git/commitdiff
Fix RTEMS ioctl() declaration
authorSebastian Huber <sebastian.huber@embedded-brains.de>
Wed, 7 Jun 2017 09:05:38 +0000 (11:05 +0200)
committerSebastian Huber <sebastian.huber@embedded-brains.de>
Wed, 7 Jun 2017 13:46:20 +0000 (15:46 +0200)
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>
newlib/libc/sys/rtems/include/sys/ioccom.h

index 9c5350d1e7a1c9d8331f555a94af73afad5dac11..2c0e9ee71e259fb5e7939283c5de2088c540001f 100644 (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
This page took 0.032958 seconds and 5 git commands to generate.