From 0a3df1d651b9e11c7c91bf095aebaf8c65d6c276 Mon Sep 17 00:00:00 2001 From: Phil Pennock Date: Sun, 6 May 2012 06:32:53 -0700 Subject: [PATCH] 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. --- src/src/os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.25.1