summaryrefslogtreecommitdiffstats
path: root/newlib/libc/sys/linux
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/sys/linux')
-rw-r--r--newlib/libc/sys/linux/sys/_types.h7
-rw-r--r--newlib/libc/sys/linux/sys/types.h1
2 files changed, 7 insertions, 1 deletions
diff --git a/newlib/libc/sys/linux/sys/_types.h b/newlib/libc/sys/linux/sys/_types.h
index 1ad429dba..2fd140520 100644
--- a/newlib/libc/sys/linux/sys/_types.h
+++ b/newlib/libc/sys/linux/sys/_types.h
@@ -51,4 +51,11 @@ typedef struct
typedef struct { __flock_mutex_t mutex; } _flock_t;
+#define _CLOCK_T_ unsigned long /* clock() */
+#define _TIME_T_ long /* time() */
+#define _CLOCKID_T_ unsigned long
+#define _TIMER_T_ unsigned long
+
+typedef long __suseconds_t; /* microseconds (signed) */
+
#endif /* _SYS__TYPES_H */
diff --git a/newlib/libc/sys/linux/sys/types.h b/newlib/libc/sys/linux/sys/types.h
index 8e674eff6..20dab2f53 100644
--- a/newlib/libc/sys/linux/sys/types.h
+++ b/newlib/libc/sys/linux/sys/types.h
@@ -54,7 +54,6 @@
#include <stddef.h>
#include <sys/config.h>
#include <features.h>
-#include <machine/types.h>
#include <sys/_types.h>
#if !defined(__time_t_defined) && !defined(_TIME_T)