aboutsummaryrefslogtreecommitdiff
path: root/src/include/port/win32
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/port/win32')
-rw-r--r--src/include/port/win32/arpa/inet.h1
-rw-r--r--src/include/port/win32/dlfcn.h0
-rw-r--r--src/include/port/win32/grp.h0
-rw-r--r--src/include/port/win32/netdb.h0
-rw-r--r--src/include/port/win32/netinet/in.h2
-rw-r--r--src/include/port/win32/pwd.h0
-rw-r--r--src/include/port/win32/sys/socket.h15
-rw-r--r--src/include/port/win32/sys/wait.h0
8 files changed, 18 insertions, 0 deletions
diff --git a/src/include/port/win32/arpa/inet.h b/src/include/port/win32/arpa/inet.h
new file mode 100644
index 00000000000..dc979c05372
--- /dev/null
+++ b/src/include/port/win32/arpa/inet.h
@@ -0,0 +1 @@
+#include <sys/socket.h>
diff --git a/src/include/port/win32/dlfcn.h b/src/include/port/win32/dlfcn.h
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/src/include/port/win32/dlfcn.h
diff --git a/src/include/port/win32/grp.h b/src/include/port/win32/grp.h
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/src/include/port/win32/grp.h
diff --git a/src/include/port/win32/netdb.h b/src/include/port/win32/netdb.h
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/src/include/port/win32/netdb.h
diff --git a/src/include/port/win32/netinet/in.h b/src/include/port/win32/netinet/in.h
new file mode 100644
index 00000000000..52db5248cb7
--- /dev/null
+++ b/src/include/port/win32/netinet/in.h
@@ -0,0 +1,2 @@
+#include <sys/socket.h>
+
diff --git a/src/include/port/win32/pwd.h b/src/include/port/win32/pwd.h
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/src/include/port/win32/pwd.h
diff --git a/src/include/port/win32/sys/socket.h b/src/include/port/win32/sys/socket.h
new file mode 100644
index 00000000000..93df14ed7ce
--- /dev/null
+++ b/src/include/port/win32/sys/socket.h
@@ -0,0 +1,15 @@
+/*
+ * Unfortunately, <wingdi.h> of VC++ also defines ERROR.
+ * To avoid the conflict, we include <windows.h> here and undefine ERROR
+ * immediately.
+ *
+ * Note: Don't include <wingdi.h> directly. It causes compile errors.
+ */
+#include <winsock2.h>
+#undef ERROR
+#undef small
+
+/* Restore old ERROR value */
+#ifdef PGERROR
+#define ERROR PGERROR
+#endif
diff --git a/src/include/port/win32/sys/wait.h b/src/include/port/win32/sys/wait.h
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/src/include/port/win32/sys/wait.h