[FFmpeg-devel] [PATCH] fix implicit function declarations without _XOPEN_SOURCE

Aurelien Jacobs aurel
Wed Aug 13 23:40:47 CEST 2008


Hi,

When compiling without _XOPEN_SOURCE defined globally, there are a few
"implicit function declaration" warnings appearing. This might cause
serious trouble on 64 bits arch (segfault, etc...).
Attached patch adds a few define to some files, to ensure the prototypes
of the following functions are imported:
 - usleep()
 - mkstemp()
 - gethostname()
 - inet_aton()

With this patch applied, I think that global _XOPEN_SOURCE can definitely
be dropped, without any kind of trouble.

Aurel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: implicit.diff
Type: text/x-patch
Size: 2552 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080813/f8b6b74e/attachment.bin>



More information about the ffmpeg-devel mailing list