blob: 8496ea6e91a1b46ba4ae3b9bf43ab09e02e667f1 [file] [log] [blame]
#define _GNU_SOURCE
#include <netdb.h>
#include <netinet/in.h>
#include <string.h>
#include <sys/socket.h>
struct hostent* gethostbyname(const char* name) {
return gethostbyname2(name, AF_INET);
}