summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Pennock <pdp@exim.org>2012-05-06 06:32:53 -0700
committerPhil Pennock <pdp@exim.org>2012-05-06 06:32:53 -0700
commit0a3df1d651b9e11c7c91bf095aebaf8c65d6c276 (patch)
tree1099ece86759feca1893edec5068d579dc8995c2
parent5bfb4cdf352ad40304c6bbf0d826569dea761699 (diff)
Unbreak build on Solaris.
Solaris needs -lresolv, ie $(LIBRESOLV), for anything referencing DNS. I added _res stuff to os.c. os.c is used by multiple tools, but of those only Exim needs the DNS functionality. So used a !defined(COMPILE_UTILITY) guard.
-rw-r--r--src/src/os.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/src/os.c b/src/src/os.c
index a70bc6115..96ee35562 100644
--- a/src/src/os.c
+++ b/src/src/os.c
@@ -807,7 +807,7 @@ directly, instead making you call a function per thread to get a handle.
Other OSs handle thread-safe resolver differently, in ways which fail if the
programmer creates their own structs. */
-#ifndef OS_GET_DNS_RESOLVER_RES
+#if !defined(OS_GET_DNS_RESOLVER_RES) && !defined(COMPILE_UTILITY)
#include <resolv.h>