• Martin Storsjö's avatar
    os_support: Don't try to return the service name as a string in getnameinfo · 00b62968
    Martin Storsjö authored
    Some systems may be lacking getservbyport; the previous ifdef wasn't
    quite enough since it still assumed that struct servent was defined,
    as pointed out by Clément Gregoire.
    
    Simply remove the possibility to return non-numeric services in
    getnameinfo; no caller of getnameinfo within libavformat
    currently try to use getnameinfo for retrieving the port number without
    NI_NUMERICSERV, and falling back on getservbyport may be non-threadsafe.
    Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
    00b62968
configure 155 KB