mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 13:38:26 +00:00
declare h_errno only on those platforms that actually need it;
it conflicts with the declaration in netdb.h on AIX
This commit is contained in:
parent
cd47ac233a
commit
8a690d7c32
@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: nsupdate.c,v 1.49 2000/09/18 19:16:45 mws Exp $ */
|
/* $Id: nsupdate.c,v 1.50 2000/09/18 23:23:12 gson Exp $ */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
@ -26,6 +26,10 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
#if (!(defined(HAVE_ADDRINFO) && defined(HAVE_GETADDRINFO)))
|
||||||
|
extern int h_errno;
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <isc/app.h>
|
#include <isc/app.h>
|
||||||
#include <isc/base64.h>
|
#include <isc/base64.h>
|
||||||
#include <isc/buffer.h>
|
#include <isc/buffer.h>
|
||||||
@ -106,8 +110,6 @@ static isc_sockaddr_t *userserver = NULL;
|
|||||||
static char *keystr = NULL, *keyfile = NULL;
|
static char *keystr = NULL, *keyfile = NULL;
|
||||||
static isc_entropy_t *entp = NULL;
|
static isc_entropy_t *entp = NULL;
|
||||||
|
|
||||||
extern int h_errno;
|
|
||||||
|
|
||||||
typedef struct nsu_requestinfo {
|
typedef struct nsu_requestinfo {
|
||||||
dns_message_t *msg;
|
dns_message_t *msg;
|
||||||
isc_sockaddr_t *addr;
|
isc_sockaddr_t *addr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user