From b744f963d7061ce55d2eed65b281298476e54fb7 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 16 Aug 2006 10:47:53 +0000 Subject: With --enable-gpg the keyservers are now build and a first test using gpg2 shows no prblems. Needs more testing of course. --- common/http.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'common/http.c') diff --git a/common/http.c b/common/http.c index 22ee5c23c..e77e1d11e 100644 --- a/common/http.c +++ b/common/http.c @@ -67,10 +67,11 @@ typedef gnutls_transport_ptr gnutls_transport_ptr_t; #include "util.h" #include "http.h" - +#ifdef USE_DNS_SRV +#include "srv.h" +#else /*!USE_DNS_SRV*/ /* If we are not compiling with SRV record support we provide stub data structures. */ -#ifndef USE_DNS_SRV #ifndef MAXDNAME #define MAXDNAME 1025 #endif @@ -1366,7 +1367,7 @@ connect_server (const char *server, unsigned short port, { char srvname[MAXDNAME]; - stprcpy (stpcpy (stpcpy (stpcpy (srvname,"_"), srvtag), + stpcpy (stpcpy (stpcpy (stpcpy (srvname,"_"), srvtag), "._tcp."), server); srvcount = getsrv (srvname, &serverlist); } -- cgit v1.2.3