use weak symbols for the POSIX functions that will be used by C threads
[musl.git] / src / network / gethostbyname_r.c
blobcd8725417377284696d75344e8e679e14ae9cb7b
1 #define _GNU_SOURCE
3 #include <sys/socket.h>
4 #include <netdb.h>
6 int gethostbyname_r(const char *name,
7 struct hostent *h, char *buf, size_t buflen,
8 struct hostent **res, int *err)
10 return gethostbyname2_r(name, AF_INET, h, buf, buflen, res, err);