#define _GNU_SOURCE #include #include #include #include struct hostent *gethostbyname(const char *name) { return gethostbyname2(name, AF_INET); }