Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

17 lines
360 B
C

// netdb.c
// Copyright (c) 2022/10/19 Noah Treuhaft <noah@brimdata.io>
// License open source MIT
#include "netdb.h"
#include <stdlib.h>
#pragma warning(disable:4996)
struct hostent *gethostbyname2(const char *name, int af)
{ // Winsock's gethostbyname() only returns AF_INET addresses.
if ( af != AF_INET )
{ return 0;
}
return gethostbyname(name);
}