diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libc/net/getnameinfo.c | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/src/lib/libc/net/getnameinfo.c b/src/lib/libc/net/getnameinfo.c index 95b27a7006..1ae197c15a 100644 --- a/src/lib/libc/net/getnameinfo.c +++ b/src/lib/libc/net/getnameinfo.c | |||
| @@ -43,6 +43,7 @@ | |||
| 43 | #include <netdb.h> | 43 | #include <netdb.h> | 
| 44 | #include <errno.h> | 44 | #include <errno.h> | 
| 45 | #include <string.h> | 45 | #include <string.h> | 
| 46 | #include <resolv.h> | ||
| 46 | 47 | ||
| 47 | #ifndef AF_LOCAL | 48 | #ifndef AF_LOCAL | 
| 48 | #define AF_LOCAL AF_UNIX | 49 | #define AF_LOCAL AF_UNIX | 
| @@ -58,7 +59,7 @@ | |||
| 58 | } while(0) | 59 | } while(0) | 
| 59 | 60 | ||
| 60 | static int netdb_lookup_name(int family, void *addr, int addrlen, char *name, | 61 | static int netdb_lookup_name(int family, void *addr, int addrlen, char *name, | 
| 61 | int namelen) | 62 | int namelen, int flags) | 
| 62 | { | 63 | { | 
| 63 | struct hostent *hostent; | 64 | struct hostent *hostent; | 
| 64 | char *c, *c2; | 65 | char *c, *c2; | 
