[exim-cvs] Unbreak build on Solaris.

Góra strony
Delete this message
Reply to this message
Autor: Exim Git Commits Mailing List
Data:  
Dla: exim-cvs
Temat: [exim-cvs] Unbreak build on Solaris.
Gitweb: http://git.exim.org/exim.git/commitdiff/0a3df1d651b9e11c7c91bf095aebaf8c65d6c276
Commit:     0a3df1d651b9e11c7c91bf095aebaf8c65d6c276
Parent:     5bfb4cdf352ad40304c6bbf0d826569dea761699
Author:     Phil Pennock <pdp@???>
AuthorDate: Sun May 6 06:32:53 2012 -0700
Committer:  Phil Pennock <pdp@???>
CommitDate: Sun May 6 06:32:53 2012 -0700


    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 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/src/src/os.c b/src/src/os.c
index a70bc61..96ee355 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>