2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 22:45:39 +00:00

gethostbyadd changes

This commit is contained in:
Mark Andrews
2000-01-24 11:52:30 +00:00
parent d0783e645b
commit a272a55631
2 changed files with 4 additions and 4 deletions

View File

@@ -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 ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
dnl SOFTWARE. dnl SOFTWARE.
AC_REVISION($Revision: 1.81 $) AC_REVISION($Revision: 1.82 $)
AC_PREREQ(2.13) AC_PREREQ(2.13)
@@ -351,10 +351,10 @@ AC_TRY_COMPILE([
ISC_LWRES_SETNETENTINT="#undef ISC_LWRES_SETNETENTINT"]) ISC_LWRES_SETNETENTINT="#undef ISC_LWRES_SETNETENTINT"])
AC_SUBST(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([ AC_TRY_COMPILE([
#include <netdb.h> #include <netdb.h>
struct hostent *gethostbyaddr(const void *, int, int);], struct hostent *gethostbyaddr(const void *, size_t, int);],
[return(0);], [return(0);],
[AC_MSG_RESULT(yes) [AC_MSG_RESULT(yes)
ISC_LWRES_GETHOSTBYADDRVOID="#define ISC_LWRES_GETHOSTBYADDRVOID 1"], ISC_LWRES_GETHOSTBYADDRVOID="#define ISC_LWRES_GETHOSTBYADDRVOID 1"],

View File

@@ -18,7 +18,7 @@ gethostbyname(const char *name) {
#ifdef ISC_LWRES_GETHOSTBYADDRVOID #ifdef ISC_LWRES_GETHOSTBYADDRVOID
struct hostent * struct hostent *
gethostbyaddr(const void *addr, int len, int type) { gethostbyaddr(const void *addr, size_t len, int type) {
int error; int error;
if (he != NULL) if (he != NULL)