#define _GNU_SOURCE #include #include #include #include struct hostent *gethostbyname(const char *name) { return gethostbyname2(name, AF_INET); } #ifdef TEST int main(void) { return 0; } #endif