This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH] devctl.h: Fix typo and include proper header
- From: Sebastian Huber <sebastian dot huber at embedded-brains dot de>
- To: newlib at sourceware dot org
- Cc: Sebastian Huber <sebastian dot huber at embedded-brains dot de>
- Date: Wed, 25 Jan 2017 07:13:54 +0100
- Subject: [PATCH] devctl.h: Fix typo and include proper header
- Authentication-results: sourceware.org; auth=none
Remove stray commas. Include <sys/cdefs.h> for __restrict (includes
<stddef.h> indirectly).
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
---
newlib/libc/include/devctl.h | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/newlib/libc/include/devctl.h b/newlib/libc/include/devctl.h
index 13207ec..f6055fb 100644
--- a/newlib/libc/include/devctl.h
+++ b/newlib/libc/include/devctl.h
@@ -37,14 +37,14 @@
*/
#ifdef _POSIX_26_C_SOURCE
-#include <stddef.h>
+#include <sys/cdefs.h>
int posix_devctl(
- int fd,
- int dcmd,
- void *__restrict, dev_data_ptr,
- size_t nbyte,
- int *__restrict, dev_info_ptr
+ int fd,
+ int dcmd,
+ void *__restrict dev_data_ptr,
+ size_t nbyte,
+ int *__restrict dev_info_ptr
);
#endif
--
1.8.4.5