diff options
author | 2012-09-06 15:05:16 +0000 | |
---|---|---|
committer | 2012-09-06 15:05:16 +0000 | |
commit | 262cf3f83cdbd553ad7b1911d8d86c0037d66365 (patch) | |
tree | de01efc065f055ac28fccf96fe1e297c4461a431 /lib/libc/asr/gethostnamadr_async.c | |
parent | make it easy to build without debug code (diff) | |
download | wireguard-openbsd-262cf3f83cdbd553ad7b1911d8d86c0037d66365.tar.xz wireguard-openbsd-262cf3f83cdbd553ad7b1911d8d86c0037d66365.zip |
include yp headers if necessary.
remove unused variable.
Diffstat (limited to 'lib/libc/asr/gethostnamadr_async.c')
-rw-r--r-- | lib/libc/asr/gethostnamadr_async.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/libc/asr/gethostnamadr_async.c b/lib/libc/asr/gethostnamadr_async.c index 9e2299d20d2..66b46dec3ed 100644 --- a/lib/libc/asr/gethostnamadr_async.c +++ b/lib/libc/asr/gethostnamadr_async.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gethostnamadr_async.c,v 1.7 2012/09/04 16:03:21 eric Exp $ */ +/* $OpenBSD: gethostnamadr_async.c,v 1.8 2012/09/06 15:05:16 eric Exp $ */ /* * Copyright (c) 2012 Eric Faurot <eric@openbsd.org> * @@ -26,6 +26,12 @@ #include <stdlib.h> #include <string.h> #include <unistd.h> +#ifdef YP +#include <rpc/rpc.h> +#include <rpcsvc/yp.h> +#include <rpcsvc/ypclnt.h> +#include "ypinternal.h" +#endif #include "asr.h" #include "asr_private.h" |