[FFmpeg-devel] [PATCH 2/2] lavf/file: check for dirent.h support

Mariusz Szczepańczyk mszczepanczyk at gmail.com
Wed Jun 24 03:25:18 CEST 2015


On Tue, Jun 23, 2015 at 8:34 PM, Michael Niedermayer <michaelni at gmx.at>
wrote:

> On Mon, Jun 22, 2015 at 12:01:33AM +0200, Mariusz Szczepańczyk wrote:
> > ---
> >  configure          |  2 ++
> >  libavformat/file.c | 34 ++++++++++++++++++++++++++++++++++
> >  2 files changed, 36 insertions(+)
>
> this and the previous patch fails to build
>
> make distclean ; ./configure --disable-sdl && make -j12
>
> libavformat/file.c: In function ‘file_read_dir’:
> libavformat/file.c:302:10: error: ‘DT_FIFO’ undeclared (first use in this
> function)
> libavformat/file.c:302:10: note: each undeclared identifier is reported
> only once for each function it appears in
> libavformat/file.c:305:10: error: ‘DT_CHR’ undeclared (first use in this
> function)
> libavformat/file.c:308:10: error: ‘DT_DIR’ undeclared (first use in this
> function)
> libavformat/file.c:311:10: error: ‘DT_BLK’ undeclared (first use in this
> function)
> libavformat/file.c:314:10: error: ‘DT_REG’ undeclared (first use in this
> function)
> libavformat/file.c:317:10: error: ‘DT_LNK’ undeclared (first use in this
> function)
> libavformat/file.c:320:10: error: ‘DT_SOCK’ undeclared (first use in this
> function)
> libavformat/file.c:323:10: error: ‘DT_UNKNOWN’ undeclared (first use in
> this function)
> make: *** [libavformat/file.o] Error 1
> make: *** Waiting for unfinished jobs....
>
> sdl disable is needed to reproduce  as sdls pkgcnonfig adds
> GNU_SOURCE i suspect
>

Added contraint on _GNU_SOURCE and now it compiles fine on my linux in both
cases (with or without sdl).

I've sent two patches to keep my and Lukasz's work separated. Of course I
can squash them if you like.

Mariusz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-lavf-file-check-for-dirent.h-support.patch
Type: text/x-patch
Size: 3781 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150624/48a0861e/attachment.bin>


More information about the ffmpeg-devel mailing list