PostgreSQL Source Code
git master
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
c
d
g
h
i
k
l
m
p
r
s
t
Functions
Variables
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
c
d
f
h
i
n
o
p
r
s
t
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
socket.h
Go to the documentation of this file.
1
/*
2
* src/include/port/win32/sys/socket.h
3
*/
4
#ifndef WIN32_SYS_SOCKET_H
5
#define WIN32_SYS_SOCKET_H
6
7
/*
8
* Unfortunately, <wingdi.h> of VC++ also defines ERROR.
9
* To avoid the conflict, we include <windows.h> here and undefine ERROR
10
* immediately.
11
*
12
* Note: Don't include <wingdi.h> directly. It causes compile errors.
13
*/
14
#include <winsock2.h>
15
#include <ws2tcpip.h>
16
#include <windows.h>
17
18
#undef ERROR
19
#undef small
20
21
/* Restore old ERROR value */
22
#ifdef PGERROR
23
#define ERROR PGERROR
24
#endif
25
26
/*
27
* We don't use the Windows gai_strerror[A] function because it is not
28
* thread-safe. We define our own in src/port/win32gai_strerror.c.
29
*/
30
#undef gai_strerror
31
32
extern
const
char
*
gai_strerror
(
int
ecode);
33
34
#endif
/* WIN32_SYS_SOCKET_H */
gai_strerror
const char * gai_strerror(int ecode)
Definition:
win32gai_strerror.c:22
src
include
port
win32
sys
socket.h
Generated on Mon Apr 21 2025 06:13:26 for PostgreSQL Source Code by
1.9.4