]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/os_support.c
ZeroCodec: Flip output
[ffmpeg] / libavformat / os_support.c
index 76187082836a5abb0d07b11efbcd98aa00a7d7f7..451801ff706200be4143a6af37b04045cd8c6adf 100644 (file)
@@ -235,8 +235,10 @@ int ff_getnameinfo(const struct sockaddr *sa, int salen,
 
     if (serv && servlen > 0) {
         struct servent *ent = NULL;
+#if HAVE_GETSERVBYPORT
         if (!(flags & NI_NUMERICSERV))
             ent = getservbyport(sin->sin_port, flags & NI_DGRAM ? "udp" : "tcp");
+#endif
 
         if (ent)
             snprintf(serv, servlen, "%s", ent->s_name);