mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 05:57:52 +00:00
gethostbyadd changes
This commit is contained in:
parent
d0783e645b
commit
a272a55631
@ -13,7 +13,7 @@ dnl PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
|
||||
dnl ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
||||
dnl SOFTWARE.
|
||||
|
||||
AC_REVISION($Revision: 1.81 $)
|
||||
AC_REVISION($Revision: 1.82 $)
|
||||
|
||||
AC_PREREQ(2.13)
|
||||
|
||||
@ -351,10 +351,10 @@ AC_TRY_COMPILE([
|
||||
ISC_LWRES_SETNETENTINT="#undef ISC_LWRES_SETNETENTINT"])
|
||||
AC_SUBST(ISC_LWRES_SETNETENTINT)
|
||||
|
||||
AC_MSG_CHECKING(for gethostbyadd(const void *,...))
|
||||
AC_MSG_CHECKING(for gethostbyadd(const void *, size_t, ...))
|
||||
AC_TRY_COMPILE([
|
||||
#include <netdb.h>
|
||||
struct hostent *gethostbyaddr(const void *, int, int);],
|
||||
struct hostent *gethostbyaddr(const void *, size_t, int);],
|
||||
[return(0);],
|
||||
[AC_MSG_RESULT(yes)
|
||||
ISC_LWRES_GETHOSTBYADDRVOID="#define ISC_LWRES_GETHOSTBYADDRVOID 1"],
|
||||
|
@ -18,7 +18,7 @@ gethostbyname(const char *name) {
|
||||
|
||||
#ifdef ISC_LWRES_GETHOSTBYADDRVOID
|
||||
struct hostent *
|
||||
gethostbyaddr(const void *addr, int len, int type) {
|
||||
gethostbyaddr(const void *addr, size_t len, int type) {
|
||||
int error;
|
||||
|
||||
if (he != NULL)
|
||||
|
Loading…
x
Reference in New Issue
Block a user