Lines 64-70
Link Here
|
64 |
|
64 |
|
65 |
typedef void (*SIGNAL_HANDLER) (...); |
65 |
typedef void (*SIGNAL_HANDLER) (...); |
66 |
|
66 |
|
67 |
#ifndef _MSC_VER /* _WIN32 */ |
67 |
#if ! defined(_MSC_VER) && (defined(__GLIBC__) || defined(__UCLIBC__)) |
68 |
extern "C" { |
68 |
extern "C" { |
69 |
int rresvport(int *); |
69 |
int rresvport(int *); |
70 |
} |
70 |
} |
Lines 162-168
int Connection::Open(int priv)
Link Here
|
162 |
int aport = IPPORT_RESERVED - 1; |
162 |
int aport = IPPORT_RESERVED - 1; |
163 |
|
163 |
|
164 |
// Native Windows (MSVC) has no rresvport |
164 |
// Native Windows (MSVC) has no rresvport |
165 |
#ifndef _MSC_VER /* _WIN32 */ |
165 |
#if ! defined(_MSC_VER) && (defined(__GLIBC__) || defined(__UCLIBC__)) |
166 |
sock = rresvport(&aport); |
166 |
sock = rresvport(&aport); |
167 |
#else |
167 |
#else |
168 |
return NOTOK; |
168 |
return NOTOK; |