diff options
Diffstat (limited to 'lib/libc/asr/gethostnamadr.c')
-rw-r--r-- | lib/libc/asr/gethostnamadr.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libc/asr/gethostnamadr.c b/lib/libc/asr/gethostnamadr.c index a7561f132e3..e07abadb443 100644 --- a/lib/libc/asr/gethostnamadr.c +++ b/lib/libc/asr/gethostnamadr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gethostnamadr.c,v 1.10 2014/03/25 19:48:11 eric Exp $ */ +/* $OpenBSD: gethostnamadr.c,v 1.11 2014/03/26 18:13:15 eric Exp $ */ /* * Copyright (c) 2012,2013 Eric Faurot <eric@openbsd.org> * @@ -16,16 +16,17 @@ */ #include <sys/types.h> +#include <sys/socket.h> #include <netinet/in.h> +#include <netdb.h> +#include <asr.h> #include <errno.h> #include <resolv.h> #include <stdint.h> #include <stdlib.h> #include <string.h> -#include "asr.h" - static int _gethostbyname(const char *, int, struct hostent *, char *, size_t, int *); static int _fillhostent(const struct hostent *, struct hostent *, char *, |