Inreased buffer size for the Linux gethostbyname_r() test

This commit is contained in:
Daniel Stenberg 2000-08-24 17:12:46 +00:00
parent a1c0a5d0f2
commit bb7929ec50

View File

@ -240,10 +240,10 @@ main () {
struct hostent h; struct hostent h;
struct hostent *hp; struct hostent *hp;
char *name = "localhost"; char *name = "localhost";
char buf[10]; char buf[8192];
int rc; int rc;
int h_errno; int h_errno;
rc = gethostbyname_r(name, &h, buf, 10, &hp, &h_errno); rc = gethostbyname_r(name, &h, buf, 8192, &hp, &h_errno);
exit (rc != 0 ? 1 : 0); }],[ exit (rc != 0 ? 1 : 0); }],[
AC_MSG_RESULT(yes) AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_GETHOSTBYNAME_R_6) AC_DEFINE(HAVE_GETHOSTBYNAME_R_6)