aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/netdb.h0
-rw-r--r--include/netinet/in.h0
-rw-r--r--include/netinet/tcp.h0
-rw-r--r--include/stddef.h6
-rw-r--r--include/sys/param.h6
-rw-r--r--include/sys/socket.h11
-rw-r--r--include/sys/types.h6
-rw-r--r--include/sys/un.h11
8 files changed, 40 insertions, 0 deletions
diff --git a/include/netdb.h b/include/netdb.h
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/include/netdb.h
diff --git a/include/netinet/in.h b/include/netinet/in.h
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/include/netinet/in.h
diff --git a/include/netinet/tcp.h b/include/netinet/tcp.h
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/include/netinet/tcp.h
diff --git a/include/stddef.h b/include/stddef.h
new file mode 100644
index 000000000..570512ba7
--- /dev/null
+++ b/include/stddef.h
@@ -0,0 +1,6 @@
+#ifndef __STDDEF_H__
+#define __STDDEF_H__
+
+#define offsetof(st, m) ((size_t) ( (char *)&((st *)(0))->m - (char *)0 ))
+
+#endif
diff --git a/include/sys/param.h b/include/sys/param.h
new file mode 100644
index 000000000..577f415a0
--- /dev/null
+++ b/include/sys/param.h
@@ -0,0 +1,6 @@
+#ifndef __PARAM_H__
+#define __PARAM_H__
+
+#define MAXPATHLEN 255
+
+#endif \ No newline at end of file
diff --git a/include/sys/socket.h b/include/sys/socket.h
new file mode 100644
index 000000000..98068952a
--- /dev/null
+++ b/include/sys/socket.h
@@ -0,0 +1,11 @@
+#ifndef __SOCKET_H__
+#define __SOCKET_H__
+
+#include <X11/Xwinsock.h>
+#include <Ws2tcpip.h>
+
+typedef unsigned in_addr_t;
+typedef unsigned short sa_family_t;
+typedef unsigned short in_port_t;
+
+#endif \ No newline at end of file
diff --git a/include/sys/types.h b/include/sys/types.h
new file mode 100644
index 000000000..c4d8c2c2d
--- /dev/null
+++ b/include/sys/types.h
@@ -0,0 +1,6 @@
+#ifndef __TYPES_H__
+#define __TYPES_H__
+
+#include <wchar.h>
+
+#endif \ No newline at end of file
diff --git a/include/sys/un.h b/include/sys/un.h
new file mode 100644
index 000000000..b2562b723
--- /dev/null
+++ b/include/sys/un.h
@@ -0,0 +1,11 @@
+#ifndef __UN_H__
+#define __UN_H__
+
+#define UNIX_PATH_MAX 108
+
+struct sockaddr_un {
+ sa_family_t sun_family; /* AF_UNIX */
+ char sun_path[UNIX_PATH_MAX]; /* pathname */
+};
+
+#endif /* __UN_H__ */ \ No newline at end of file