Mike McCormack : dnsapi: Fix the case where we have libresolv headers but no libraries.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jun 5 14:24:42 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: ea2d3f802bec6109f6b1f717ee5f8a15e132847d
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=ea2d3f802bec6109f6b1f717ee5f8a15e132847d

Author: Mike McCormack <mike at codeweavers.com>
Date:   Mon Jun  5 21:50:00 2006 +0900

dnsapi: Fix the case where we have libresolv headers but no libraries.

---

 dlls/dnsapi/ns_parse.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/dlls/dnsapi/ns_parse.c b/dlls/dnsapi/ns_parse.c
index 7d76428..9c386bc 100644
--- a/dlls/dnsapi/ns_parse.c
+++ b/dlls/dnsapi/ns_parse.c
@@ -17,6 +17,8 @@
 
 #include "config.h"
 
+#ifdef HAVE_RESOLV
+
 #include <sys/types.h>
 
 #ifdef HAVE_NETINET_IN_H
@@ -180,3 +182,5 @@ setsection(ns_msg *msg, ns_sect sect) {
 		NS_PTR(msg) = msg->_sections[(int)sect];
 	}
 }
+
+#endif




More information about the wine-cvs mailing list