On Wed, 28 Oct 2015, Martin Storsjö wrote:

Some systems may be lacking getservbyport; the previous ifdef wasn't
quite enough since it still assumed that struct servent was defined.

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.

The issue that the code currently relied on struct servent being defined
was pointed out by Clément Gregoire.
---
configure                |  2 --
libavformat/os_support.c | 11 ++---------
2 files changed, 2 insertions(+), 11 deletions(-)

Ok'd by Luca on irc.

// Martin
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to