Le 2015-10-28 15:54, Martin Storsjö a écrit :
From: Clément Gregoire <[email protected]>

On systems lacking getservbyport, struct servent might not be defined,
causing a compilation error when trying to access its member s_name
(ent->s_name).
There is no point in keeping the if(ent) branch when getservbyport is not
available.

On ancient OSes, I'd remove all use of servent and replace with strtoul/s*printf or whatever. It would be thread safe and not have those issues.

--
Rémi Denis-Courmont
http://www.remlab.net/
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to