aboutsummaryrefslogtreecommitdiff
path: root/src/network/gethostbyname_r.c
blob: efc3e660fde9cc5442e745245b344ba41f434ee1 (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>

int gethostbyname_r(const char *name,
	struct hostent *h, char *buf, size_t buflen,
	struct hostent **res, int *err)
{
	return gethostbyname2_r(name, AF_INET, h, buf, buflen, res, err);
}


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