aboutsummaryrefslogtreecommitdiff
path: root/system/include/compat/sys
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-09-24 18:25:09 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-09-24 18:25:09 -0700
commit05b6aa32a5f1633797f7eae390b3a8048b29ca69 (patch)
tree43543261bb5485b1c109e0e9f93dcb2f7bcd227d /system/include/compat/sys
parent6010666be99cd0322babba1174cfbc65c776deb5 (diff)
parent8e2d812b49f7de9487e1c816229106af0cf39d0d (diff)
Merge branch 'incoming'
Diffstat (limited to 'system/include/compat/sys')
-rw-r--r--system/include/compat/sys/socketvar.h14
-rw-r--r--system/include/compat/sys/timeb.h10
2 files changed, 17 insertions, 7 deletions
diff --git a/system/include/compat/sys/socketvar.h b/system/include/compat/sys/socketvar.h
new file mode 100644
index 00000000..1e60ac2f
--- /dev/null
+++ b/system/include/compat/sys/socketvar.h
@@ -0,0 +1,14 @@
+#ifndef _COMPAT_SOCKETVAR_H
+#define _COMPAT_SOCKETVAR_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <sys/socket.h>
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
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
}