summaryrefslogtreecommitdiff
path: root/src/network/gethostbyname.c
blob: bfedf52ad65bfc6fb1b1c3304c67d9049aa584aa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#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);
}