[configure.ac openbsd-compat/getrrsetbyname.c] wrap _getshort and
_getlong in #ifndef
This commit is contained in:
parent
167bd9cfef
commit
0ac16a4492
|
@ -1,3 +1,7 @@
|
|||
20030908
|
||||
- (tim) [configure.ac openbsd-compat/getrrsetbyname.c] wrap _getshort and
|
||||
_getlong in #ifndef
|
||||
|
||||
20030907
|
||||
- (dtucker) [agent-ptrace.sh dynamic-forward.sh (all regress/)]
|
||||
Put "which" inside quotes.
|
||||
|
@ -1037,4 +1041,4 @@
|
|||
- Fix sshd BindAddress and -b options for systems using fake-getaddrinfo.
|
||||
Report from murple@murple.net, diagnosis from dtucker@zip.com.au
|
||||
|
||||
$Id: ChangeLog,v 1.2969 2003/09/07 02:34:54 dtucker Exp $
|
||||
$Id: ChangeLog,v 1.2970 2003/09/08 13:33:33 tim Exp $
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $Id: configure.ac,v 1.145 2003/09/07 02:34:54 dtucker Exp $
|
||||
# $Id: configure.ac,v 1.146 2003/09/08 13:33:33 tim Exp $
|
||||
|
||||
AC_INIT
|
||||
AC_CONFIG_SRCDIR([ssh.c])
|
||||
|
@ -1912,6 +1912,7 @@ AC_ARG_WITH(dns,
|
|||
# Needed by our getrrsetbyname()
|
||||
AC_SEARCH_LIBS(res_query, resolv)
|
||||
AC_SEARCH_LIBS(dn_expand, resolv)
|
||||
AC_CHECK_FUNCS(_getshort _getlong)
|
||||
])
|
||||
fi
|
||||
]
|
||||
|
|
|
@ -130,6 +130,7 @@ static int count_dns_rr(struct dns_rr *, u_int16_t, u_int16_t);
|
|||
* Routines to insert/extract short/long's.
|
||||
*/
|
||||
|
||||
#ifndef HAVE__GETSHORT
|
||||
static u_int16_t
|
||||
_getshort(msgp)
|
||||
register const u_char *msgp;
|
||||
|
@ -139,7 +140,9 @@ _getshort(msgp)
|
|||
GETSHORT(u, msgp);
|
||||
return (u);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef HAVE__GETLONG
|
||||
static u_int32_t
|
||||
_getlong(msgp)
|
||||
register const u_char *msgp;
|
||||
|
@ -149,6 +152,7 @@ _getlong(msgp)
|
|||
GETLONG(u, msgp);
|
||||
return (u);
|
||||
}
|
||||
#endif
|
||||
|
||||
int
|
||||
getrrsetbyname(const char *hostname, unsigned int rdclass,
|
||||
|
|
Loading…
Reference in New Issue