Lines 64-75
Link Here
|
64 |
|
64 |
|
65 |
typedef void (*SIGNAL_HANDLER) (...); |
65 |
typedef void (*SIGNAL_HANDLER) (...); |
66 |
|
66 |
|
67 |
#ifndef _MSC_VER /* _WIN32 */ |
|
|
68 |
extern "C" { |
69 |
int rresvport(int *); |
70 |
} |
71 |
#endif |
72 |
|
73 |
#undef MIN |
67 |
#undef MIN |
74 |
#define MIN(a,b) ((a)<(b)?(a):(b)) |
68 |
#define MIN(a,b) ((a)<(b)?(a):(b)) |
75 |
|
69 |
|
Lines 161-172
int Connection::Open(int priv)
Link Here
|
161 |
{ |
155 |
{ |
162 |
int aport = IPPORT_RESERVED - 1; |
156 |
int aport = IPPORT_RESERVED - 1; |
163 |
|
157 |
|
164 |
// Native Windows (MSVC) has no rresvport |
|
|
165 |
#ifndef _MSC_VER /* _WIN32 */ |
166 |
sock = rresvport(&aport); |
167 |
#else |
168 |
return NOTOK; |
158 |
return NOTOK; |
169 |
#endif |
|
|
170 |
} |
159 |
} |
171 |
else |
160 |
else |
172 |
{ |
161 |
{ |