#include <string.h>
#include <netinet/in.h>
#include <errno.h>
-#include <inttypes.h>
+#include <stdint.h>
int gethostbyname2_r(const char *name, int af,
struct hostent *h, char *buf, size_t buflen,
buflen -= sizeof(char *)-i;
}
- getaddrinfo(name, 0, &hint, &ai);
switch (getaddrinfo(name, 0, &hint, &ai)) {
case EAI_NONAME:
*err = HOST_NOT_FOUND;