Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/include/machine/types.h')
-rw-r--r--newlib/libc/include/machine/types.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/newlib/libc/include/machine/types.h b/newlib/libc/include/machine/types.h
index 40a75faa5..b573336b7 100644
--- a/newlib/libc/include/machine/types.h
+++ b/newlib/libc/include/machine/types.h
@@ -6,8 +6,25 @@
* closely match the types defined in the BSD machine/types.h.
* This is needed to let the RTEMS/BSD TCP/IP stack compile.
*/
+
#if defined(__rtems__)
-#include <machine/_types.h>
+typedef signed long long int64_t;
+#if defined( __h8300__)
+typedef signed long int32_t;
+#else
+typedef signed int int32_t;
+#endif
+typedef signed short int16_t;
+typedef signed char int8_t;
+
+typedef unsigned long long u_int64_t;
+#if defined( __h8300__)
+typedef unsigned long u_int32_t;
+#else
+typedef unsigned int u_int32_t;
+#endif
+typedef unsigned short u_int16_t;
+typedef unsigned char u_int8_t;
#endif
#define _CLOCK_T_ unsigned long /* clock() */