mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-18 14:17:03 +01:00
Better implementation for the SRV check. We don't need to actually check
all the header files individually since the SRV test compile uses them together.
This commit is contained in:
parent
afe8ca4fbf
commit
f539f3d2b2
@ -1,3 +1,9 @@
|
|||||||
|
2004-12-28 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
|
* srv.h: Better implementation for the SRV check. We don't need
|
||||||
|
to actually check all the header files individually since the SRV
|
||||||
|
test compile uses them together.
|
||||||
|
|
||||||
2004-12-20 Werner Koch <wk@g10code.com>
|
2004-12-20 Werner Koch <wk@g10code.com>
|
||||||
|
|
||||||
* strgutil.c (handle_iconv_error): Turn diagnostics into warnings
|
* strgutil.c (handle_iconv_error): Turn diagnostics into warnings
|
||||||
|
@ -826,6 +826,7 @@ connect_server( const char *server, ushort port, unsigned int flags,
|
|||||||
srvlist=m_alloc_clear(sizeof(struct srventry));
|
srvlist=m_alloc_clear(sizeof(struct srventry));
|
||||||
srvlist->port=port;
|
srvlist->port=port;
|
||||||
strncpy(srvlist->target,server,MAXDNAME);
|
strncpy(srvlist->target,server,MAXDNAME);
|
||||||
|
srvlist->target[MAXDNAME-1]='\0';
|
||||||
srvcount=1;
|
srvcount=1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -21,15 +21,15 @@
|
|||||||
#ifndef _SRV_H_
|
#ifndef _SRV_H_
|
||||||
#define _SRV_H_
|
#define _SRV_H_
|
||||||
|
|
||||||
|
#ifdef USE_DNS_SRV
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#else
|
#else
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#ifdef HAVE_ARPA_NAMESER_H
|
|
||||||
#include <arpa/nameser.h>
|
#include <arpa/nameser.h>
|
||||||
#endif
|
|
||||||
#include <resolv.h>
|
#include <resolv.h>
|
||||||
#endif
|
#endif /* !_WIN32 */
|
||||||
|
#endif /* USE_DNS_SRV */
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
|
|
||||||
#ifndef MAXDNAME
|
#ifndef MAXDNAME
|
||||||
|
Loading…
x
Reference in New Issue
Block a user