Port getaddrinfo to MSVC++.

This commit is contained in:
Martin v. Löwis 2001-07-19 17:37:46 +00:00
parent 1bdd0f2559
commit d783041a14
3 changed files with 15 additions and 15 deletions

View file

@ -195,12 +195,7 @@ Socket methods:
#include <GUSI.h>
#endif
/* XXX 24-Jun-2000 Tim: I have no idea what the code inside this block is
trying to do, and don't have time to look. Looks like Unix-specific code
in those files, though, which will never compile on Windows. */
#ifndef MS_WINDOWS
#include "addrinfo.h"
#endif /* ifndef MS_WINDOWS hack */
#ifdef USE_SSL
#include "openssl/rsa.h"
@ -211,11 +206,6 @@ Socket methods:
#include "openssl/err.h"
#endif /* USE_SSL */
/* XXX 24-Jun-2000 Tim: I have no idea what the code inside this block is
trying to do, and don't have time to look. Looks like Unix-specific code
in those files, though, which will never compile on Windows. */
#ifndef MS_WINDOWS
#ifndef HAVE_INET_PTON
int inet_pton (int af, char *src, void *dst);
char *inet_ntop(int af, void *src, char *dst, socklen_t size);
@ -229,8 +219,6 @@ char *inet_ntop(int af, void *src, char *dst, socklen_t size);
#include "getnameinfo.c"
#endif
#endif /* ifndef MS_WINDOWS hack */
#if defined(MS_WINDOWS) || defined(__BEOS__)
/* BeOS suffers from the same socket dichotomy as Win32... - [cjh] */
/* seem to be a few differences in the API */