diff options
Diffstat (limited to 'libc/inet/rpc/get_myaddress.c')
-rw-r--r-- | libc/inet/rpc/get_myaddress.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libc/inet/rpc/get_myaddress.c b/libc/inet/rpc/get_myaddress.c index b25fb8216..53cebe81c 100644 --- a/libc/inet/rpc/get_myaddress.c +++ b/libc/inet/rpc/get_myaddress.c @@ -45,11 +45,13 @@ #include <sys/ioctl.h> #include <arpa/inet.h> #include <netinet/in.h> +#include <rpc/clnt.h> +#include <unistd.h> #ifdef __linux__ /* DO use gethostbyname because it's portable */ #include <netdb.h> -get_myaddress(addr) +void get_myaddress(addr) struct sockaddr_in *addr; { char localhost[256 + 1]; |