mirror of https://git.musl-libc.org/git/musl
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
253 B
12 lines
253 B
|
15 years ago
|
#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);
|
||
|
|
}
|