summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2015-10-28 22:19:12 +0200
committerMartin Storsjö <martin@martin.st>2015-10-30 10:03:58 +0200
commit00b62968d079e63bf22028f253ac297292436ebe (patch)
treef345972cb9c05b94ec6acea312364cd2bedb7abf /configure
parent567ca142952c5be57e52c149c815dfe5d6ac6d41 (diff)
os_support: Don't try to return the service name as a string in getnameinfo
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: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 0 insertions, 2 deletions
diff --git a/configure b/configure
index d941d95027..cbd8c5aa52 100755
--- a/configure
+++ b/configure
@@ -1513,7 +1513,6 @@ SYSTEM_FUNCS="
GetProcessMemoryInfo
GetProcessTimes
getrusage
- getservbyport
GetSystemTimeAsFileTime
gettimeofday
gmtime_r
@@ -4240,7 +4239,6 @@ fi
if ! disabled network; then
check_func getaddrinfo $network_extralibs
- check_func getservbyport $network_extralibs
check_func inet_aton $network_extralibs
check_type netdb.h "struct addrinfo"