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

Michael Niedermayer michaelni at gmx.at
Tue Jun 23 20:34:50 CEST 2015


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

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The misfortune of the wise is better than the prosperity of the fool.
-- Epicurus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150623/a043c656/attachment.asc>


More information about the ffmpeg-devel mailing list