This commit is contained in:
blue-lemon0104
2026-04-07 13:35:22 +08:00
commit 0120fa9ce3
1530 changed files with 424864 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
/* src/include/port/win32/arpa/inet.h */
#include <sys/socket.h>

1
db_include/port/win32/dlfcn.h Executable file
View File

@@ -0,0 +1 @@
/* src/include/port/win32/dlfcn.h */

1
db_include/port/win32/grp.h Executable file
View File

@@ -0,0 +1 @@
/* src/include/port/win32/grp.h */

1
db_include/port/win32/netdb.h Executable file
View File

@@ -0,0 +1 @@
/* src/include/port/win32/netdb.h */

View File

@@ -0,0 +1,3 @@
/* src/include/port/win32/netinet/in.h */
#include <sys/socket.h>

3
db_include/port/win32/pwd.h Executable file
View File

@@ -0,0 +1,3 @@
/*
* src/include/port/win32/pwd.h
*/

View File

@@ -0,0 +1,33 @@
/*
* src/include/port/win32/sys/socket.h
*/
#ifndef WIN32_SYS_SOCKET_H
#define WIN32_SYS_SOCKET_H
/*
* 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>
#include <ws2tcpip.h>
#include <windows.h>
#undef ERROR
#undef small
/* Restore old ERROR value */
#ifdef PGERROR
#define ERROR PGERROR
#endif
/*
* we can't use the windows gai_strerror{AW} functions because
* they are defined inline in the MS header files. So we'll use our
* own
*/
#undef gai_strerror
#endif /* WIN32_SYS_SOCKET_H */

View File

@@ -0,0 +1,3 @@
/*
* src/include/port/win32/sys/wait.h
*/