From: Phil Pennock Date: Sun, 6 May 2012 13:32:53 +0000 (-0700) Subject: Unbreak build on Solaris. X-Git-Tag: exim-4_80_RC1~37 X-Git-Url: https://git.exim.org/exim.git/commitdiff_plain/0a3df1d651b9e11c7c91bf095aebaf8c65d6c276 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. --- 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