summaryrefslogtreecommitdiff
path: root/openbsd-compat/getrrsetbyname.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2003-05-15 20:55:27 +1000
committerDamien Miller <djm@mindrot.org>2003-05-15 20:55:27 +1000
commitb10f1cd8787c4efa3a97fb6354e2e4fb2958f849 (patch)
treefdca48e7a25da69191894b1a66553c7a0eba0f0a /openbsd-compat/getrrsetbyname.c
parent46a7b40d1e14ab5947eb3697bd8c2ed86cc0476c (diff)
downloadopenssh-git-b10f1cd8787c4efa3a97fb6354e2e4fb2958f849.tar.gz
- (djm) Only build getrrsetbyname replacement when using --with-dns
Diffstat (limited to 'openbsd-compat/getrrsetbyname.c')
-rw-r--r--openbsd-compat/getrrsetbyname.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsd-compat/getrrsetbyname.c b/openbsd-compat/getrrsetbyname.c
index 03637c9e..1a4d9c14 100644
--- a/openbsd-compat/getrrsetbyname.c
+++ b/openbsd-compat/getrrsetbyname.c
@@ -45,7 +45,7 @@
#include "includes.h"
-#ifndef HAVE_GETRRSETBYNAME
+#if defined(DNS) && !defined(HAVE_GETRRSETBYNAME)
#include "getrrsetbyname.h"
@@ -564,4 +564,4 @@ count_dns_rr(struct dns_rr *p, u_int16_t class, u_int16_t type)
return (n);
}
-#endif /* HAVE_GETRRSETBYNAME */
+#endif /* defined(DNS) && !defined(HAVE_GETRRSETBYNAME) */