bk: 446fa3261eHpkZAtXDWORXwECo8ojw
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
-#ifndef SYS_WINNT
-#include <netdb.h>
-#endif
#include "ntp_rfc2553.h"
#include "ntpd.h"
*/
int
DNSlookup_name(
- const char FAR *name,
+ const char *name,
int ai_family,
struct hostent **Addresses
);
*/
int
DNSlookup_name(
- const char FAR *name,
+ const char *name,
int ai_family,
struct hostent **Addresses
)
case 0:
return (0);
case WSAEINVAL:
- return (EAI_BADHINTS);
+ return (EAI_BADFLAGS);
case WSANO_DATA:
return (EAI_NONAME);
case WSANOTINITIALISED:
case WSA_NOT_ENOUGH_MEMORY:
return (EAI_MEMORY);
default:
- return (EAI_SYSTEM);
+ return (EAI_FAIL);
}
}
int
DNSlookup_name(
- const char FAR *name,
+ const char *name,
int ai_family,
struct hostent **Addresses
)