| 1 | #define _GNU_SOURCE |
| 2 | |
| 3 | #include <sys/socket.h> |
| 4 | #include <netdb.h> |
| 5 | #include <string.h> |
| 6 | #include <netinet/in.h> |
| 7 | |
| 8 | struct hostent *gethostbyname(const char *name) |
| 9 | { |
| 10 | 	return gethostbyname2(name, AF_INET); |
| 11 | } |