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

Michael Niedermayer michaelni
Thu Aug 14 02:24:16 CEST 2008

On Wed, Aug 13, 2008 at 11:40:47PM +0200, Aurelien Jacobs wrote:
> 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.


Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I am the wisest man alive, for I know one thing, and that is that I know
nothing. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080814/a7db1397/attachment.pgp>

More information about the ffmpeg-devel mailing list