diff options
Diffstat (limited to 'pr/src/misc/prnetdb.c')
-rw-r--r-- | pr/src/misc/prnetdb.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pr/src/misc/prnetdb.c b/pr/src/misc/prnetdb.c index edccde85..ca647fd8 100644 --- a/pr/src/misc/prnetdb.c +++ b/pr/src/misc/prnetdb.c @@ -1183,6 +1183,8 @@ static struct protoent *getprotobyname_r(const char* name) { #ifdef XP_OS2_VACPP return getprotobyname((char *)name); +#elif defined(WINCE) + return Wingetprotobyname(name); #else return getprotobyname(name); #endif @@ -1190,7 +1192,11 @@ static struct protoent *getprotobyname_r(const char* name) static struct protoent *getprotobynumber_r(PRInt32 number) { +#if !defined(WINCE) return getprotobynumber(number); +#else + return Wingetprotobynumber(number); +#endif } /* getprotobynumber_r */ #endif /* !defined(_PR_HAVE_GETPROTO_R) */ |