[FFmpeg-devel] [PATCH] ff_getnameinfo: fix struct servent dependancy

Clément Gregoire lectem at gmail.com
Wed Oct 28 00:13:36 CET 2015


Hi,
This is a patch for ff_getnameinfo.
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.

I am not really sure if the indentation should be kept this way or not, but
it seemed the best considering the use of the ifdef.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ff_getnameinfo-fix-struct-servent-dependancy.patch
Type: application/octet-stream
Size: 1223 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20151027/08c415d1/attachment.obj>


More information about the ffmpeg-devel mailing list