Ticket #51068: patch-inet_pton-6.patch

File patch-inet_pton-6.patch, 691 bytes (added by ballapete (Peter "Pete" Dyballa), 8 years ago)

The working patch

  • aclocal.m4

    old new  
    203203
    204204  addr.s6_addr[15] = 0x21;
    205205  inet_ntop(AF_INET6, &addr, str, sizeof(str));
    206   if (strcmp(str,"::21"))
     206  if (strcmp(str,"::21")&&strcmp(str,"::0.0.0.33"))
    207207    exit(1);
    208208}
    209209]], [ipv6_cv_can_inet_ntop=yes], [ipv6_cv_can_inet_ntop=no])])dnl
  • configure

    old new  
    42714271
    42724272  addr.s6_addr[15] = 0x21;
    42734273  inet_ntop(AF_INET6, &addr, str, sizeof(str));
    4274   if (strcmp(str,"::21"))
     4274  if (strcmp(str,"::21")&&strcmp(str,"::0.0.0.33"))
    42754275    exit(1);
    42764276}
    42774277