aboutsummaryrefslogtreecommitdiff
path: root/src/network/gethostbyname.c
blob: a3e4d8f4e47e2f892e1189d7fb2e596fa71233a4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#define _GNU_SOURCE

#include <sys/socket.h>
#include <netdb.h>
#include <string.h>
#include <netinet/in.h>

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


#ifdef TEST
int
main(void) {
	return 0;
}
#endif