summaryrefslogtreecommitdiffstats
path: root/newlib/libc/sys
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/sys')
-rw-r--r--newlib/libc/sys/linux/include/sched.h3
-rw-r--r--newlib/libc/sys/linux/sys/types.h2
2 files changed, 5 insertions, 0 deletions
diff --git a/newlib/libc/sys/linux/include/sched.h b/newlib/libc/sys/linux/include/sched.h
index becad0f36..91a7a7e7b 100644
--- a/newlib/libc/sys/linux/include/sched.h
+++ b/newlib/libc/sys/linux/include/sched.h
@@ -22,6 +22,9 @@
#include <features.h>
+#define __need_size_t
+#include <stddef.h>
+
/* Get type definitions. */
#include <bits/types.h>
diff --git a/newlib/libc/sys/linux/sys/types.h b/newlib/libc/sys/linux/sys/types.h
index ba191f072..8e674eff6 100644
--- a/newlib/libc/sys/linux/sys/types.h
+++ b/newlib/libc/sys/linux/sys/types.h
@@ -50,6 +50,8 @@
* libc/include/sys/types.h. Repeat those here and
* skip the kernel's definitions. */
+#define __need_size_t
+#include <stddef.h>
#include <sys/config.h>
#include <features.h>
#include <machine/types.h>