[MPlayer-cvslog] r27240 - trunk/configure
Uoti Urpala
uoti.urpala at pp1.inet.fi
Wed Jul 16 07:08:34 CEST 2008
On Tue, 2008-07-15 at 21:29 -0700, Baptiste Coudurier wrote:
> Michael Niedermayer wrote:
> >>> -std=c99 -fasm -fms-extensions -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112L -Dlinux
> >>>
> >>> IS enough to compile mplayer here
> >> [...]
> >>
> >> Out of curiosity, why is -D_BSD_SOURCE necessary for both MPlayer and FFmpeg?
> > ffserver.c:4475: error: ‘SA_RESTART’ undeclared (first use in this function)
> Not sure about this, related to sigaction, and it seems to be an XSI
> extension, defined in POSIX 2001. I don't know why gcc fails.
According to sigaction man page POSIX only contains a subset of the SA_*
defines and SA_RESTART is not part of POSIX. I didn't verify it from the
POSIX spec.
> > libavformat/rtpproto.c: In function ‘rtp_read’:
> > libavformat/rtpproto.c:191: error: ‘fd_set’ undeclared (first use in this function)
> > libavformat/rtpproto.c:191: error: (Each undeclared identifier is reported only once
> > libavformat/rtpproto.c:191: error: for each function it appears in.)
> > libavformat/rtpproto.c:191: error: expected ‘;’ before ‘rfds’
>
> POSIX 2001:
> The <sys/select.h> header shall define the fd_set type as a structure.
But <sys/select.h> (or the legacy alternatives) do not seem to be
included in that file.
> It is under _XOPEN_SOURCE in <sys/select.h> here (debian unstable gcc
> 4.3) though.
Are you sure? It's not under that on my Debian unstable. That header
comes from glibc, not GCC.
More information about the MPlayer-cvslog
mailing list