Skip to content
  • Petr Menšík's avatar
    Fix arch-dependent getnameinfo types · 2b916894
    Petr Menšík authored and Mark Andrews's avatar Mark Andrews committed
    getnameinfo() parameters are detected by configure. Current glibc uses
    socklen_t for BUFLEN and int for flags. Because that parameters are
    tested only as fallback, it does detect it different way on 32-bit
    system. socklen_t is compatible with size_t type on these systems.
    Try all variants with int flags, use unsigned flags as last resort.
    
    (cherry picked from commit b427dcce)
    2b916894