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

Jacob Meuser jakemsr
Sat Dec 13 10:17:56 CET 2008


On Sat, Dec 13, 2008 at 10:08:47AM +0100, Reimar D?ffinger wrote:
> 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.

that must be new since the last time I updated ffmpeg.  anyway, yes,
defining _BSD_SOURCE would be the thing to do in that case.

-- 
jakemsr at sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org




More information about the ffmpeg-devel mailing list