summaryrefslogtreecommitdiffstats
path: root/newlib
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-01-25 07:13:54 +0100
committerCorinna Vinschen <corinna@vinschen.de>2017-01-25 12:37:19 +0100
commit3cf29149be02480aed730de51981fe27192c082c (patch)
treeb0df444d2bc56574c3148a11f2cbb85182ba27bf /newlib
parente692cfc121c76a14919752d2ac5e0f9f3e95d5bb (diff)
downloadcygnal-3cf29149be02480aed730de51981fe27192c082c.tar.gz
cygnal-3cf29149be02480aed730de51981fe27192c082c.tar.bz2
cygnal-3cf29149be02480aed730de51981fe27192c082c.zip
devctl.h: Fix typo and include proper header
Remove stray commas. Include <sys/cdefs.h> for __restrict (includes <stddef.h> indirectly). Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
Diffstat (limited to 'newlib')
-rw-r--r--newlib/libc/include/devctl.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/newlib/libc/include/devctl.h b/newlib/libc/include/devctl.h
index 13207ec88..f6055fb96 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