[FFmpeg-devel] [PATCH] define _BSD_SOURCE for bktr.c

Reimar Döffinger Reimar.Doeffinger
Sat Dec 13 10:08:47 CET 2008


On Sat, Dec 13, 2008 at 08:44:51AM +0000, Jacob Meuser wrote:
> > __BSD_VISIBLE is from cdefs.h:
> > #if !defined(_BSD_SOURCE) && \
> >    (defined(_ANSI_SOURCE) || defined(__XPG_VISIBLE) || defined(__POSIX_VISIBLE))
> > # define __BSD_VISIBLE          0
> > #endif
> > #ifndef __BSD_VISIBLE
> > # define __BSD_VISIBLE          1   
> > #endif
> 
> yes, I know how this works.  but this has never been a problem before.
> you don't see patches for this in the ffmpeg port, for example.  so
> where is the other part being defined (_ANSI_SOURCE etc)?

__POSIX_VISIBLE is always defined for FFmpeg, because _POSIX_C_SOURCE is
set.




More information about the ffmpeg-devel mailing list