aboutsummaryrefslogtreecommitdiff
path: root/system/include/compat
diff options
context:
space:
mode:
Diffstat (limited to 'system/include/compat')
-rw-r--r--system/include/compat/ctype.h17
-rw-r--r--system/include/compat/sys/timeb.h10
-rw-r--r--system/include/compat/xlocale.h2
3 files changed, 20 insertions, 9 deletions
diff --git a/system/include/compat/ctype.h b/system/include/compat/ctype.h
new file mode 100644
index 00000000..891006d9
--- /dev/null
+++ b/system/include/compat/ctype.h
@@ -0,0 +1,17 @@
+#ifndef _COMPAT_CTYPE_H_
+#define _COMPAT_CTYPE_H_
+
+#define _CTYPE_A 0x00000400 /* Alpha */
+#define _CTYPE_C 0x00000002 /* Control */
+#define _CTYPE_D 0x00000800 /* Digit */
+#define _CTYPE_L 0x00000200 /* Lower */
+#define _CTYPE_P 0x00000004 /* Punct */
+#define _CTYPE_S 0x00002000 /* Space */
+#define _CTYPE_U 0x00000100 /* Upper */
+#define _CTYPE_X 0x00001000 /* X digit */
+#define _CTYPE_B 0x00000001 /* Blank */
+#define _CTYPE_R 0x00004000 /* Print */
+
+#include_next <ctype.h>
+
+#endif /* _COMPAT_CTYPE_H_ */
diff --git a/system/include/compat/sys/timeb.h b/system/include/compat/sys/timeb.h
index 0a2c3de8..2e678893 100644
--- a/system/include/compat/sys/timeb.h
+++ b/system/include/compat/sys/timeb.h
@@ -14,13 +14,9 @@ extern "C" {
#define _SYS_TIMEB_H
-#include <_ansi.h>
-#include <machine/types.h>
+#define __NEED_time_t
-#ifndef __time_t_defined
-typedef _TIME_T_ time_t;
-#define __time_t_defined
-#endif
+#include <bits/alltypes.h>
struct timeb
{
@@ -30,7 +26,7 @@ struct timeb
short dstflag;
};
-extern int ftime _PARAMS ((struct timeb *));
+extern int ftime(struct timeb *);
#ifdef __cplusplus
}
diff --git a/system/include/compat/xlocale.h b/system/include/compat/xlocale.h
index 4bafa27d..c0091164 100644
--- a/system/include/compat/xlocale.h
+++ b/system/include/compat/xlocale.h
@@ -15,7 +15,5 @@ double strtold_l(const char *start, char **end, locale_t loc);
}
#endif
-#include_next <xlocale.h>
-
#endif /* _COMPAT_XLOCALE_H_ */