public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Fix RTEMS ioctl() declaration
@ 2017-06-07 13:47 Sebastian Huber
0 siblings, 0 replies; only message in thread
From: Sebastian Huber @ 2017-06-07 13:47 UTC (permalink / raw)
To: newlib-cvs
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=e9085e0ccdad9014f44ea468d7ea49e4c2cdb02c
commit e9085e0ccdad9014f44ea468d7ea49e4c2cdb02c
Author: Sebastian Huber <sebastian.huber@embedded-brains.de>
Date: Wed Jun 7 11:05:38 2017 +0200
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>
Diff:
---
newlib/libc/sys/rtems/include/sys/ioccom.h | 4 ++--
1 file 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 9c5350d..2c0e9ee 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-06-07 13:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-07 13:47 [newlib-cygwin] Fix RTEMS ioctl() declaration Sebastian Huber
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).