[FFmpeg-devel] [PATCH] Check for signal.h, conditionally compile parts of ffmpeg.c
Martin Storsjö
martin
Tue Jul 14 00:11:55 CEST 2009
Hi,
The attached two patches first check for signal.h in configure, and then
leave out non-critical parts of ffmpeg.c if it isn't found.
signal.h isn't available on mingw32ce (mingw32 for WinCE). These patches
reduce the amount of ugly hacking needed to compile ffmpeg.c on that
platform.
The double definition of received_sigterm isn't really pretty, but IMHO
looks better than ifdeffing all the places where it's used. Another
solution would be to add "typedef sig_atomic_t int;" somewhere if signal.h
isn't available, and move the variable definition out of the ifdef block.
// Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Check-for-signal.h.patch
Type: text/x-diff
Size: 558 bytes
Desc:
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090714/d51809fe/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Check-for-HAVE_SIGNAL_H-in-ffmpeg.c.patch
Type: text/x-diff
Size: 1224 bytes
Desc:
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090714/d51809fe/attachment-0001.patch>
More information about the ffmpeg-devel
mailing list