summaryrefslogtreecommitdiff
path: root/src/pluto/adns.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pluto/adns.h')
-rw-r--r--src/pluto/adns.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/pluto/adns.h b/src/pluto/adns.h
index f564be232..dfbcbaf16 100644
--- a/src/pluto/adns.h
+++ b/src/pluto/adns.h
@@ -12,7 +12,13 @@
* for more details.
*/
-#ifndef USE_LWRES /* whole file! */
+#ifndef ADNS
+
+/* dummy struct to make compilers happy */
+struct adns_query {
+};
+
+#else /* rest of file */
/* The interface in RHL6.x and BIND distribution 8.2.2 are different,
* so we build some of our own :-(
@@ -69,5 +75,4 @@ enum helper_exit_status {
HES_BAD_LEN, /* implausible .len field */
HES_BAD_MAGIC, /* .magic field wrong */
};
-
-#endif /* !USE_LWRES */
+#endif /* ADNS */