diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2015-08-25 12:48:12 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-08-25 13:08:44 +0200 |
commit | d65b9114f35c1afe2a7061f0a1ec957d33ba02b5 (patch) | |
tree | 826960d48ec549ec569ef348526d0172431766e4 /libavformat/file.c | |
parent | 1b1c4030ea86bd0f6ca877d6ef5ea7fcdd72db4e (diff) | |
download | ffmpeg-d65b9114f35c1afe2a7061f0a1ec957d33ba02b5.tar.gz |
avformat/file: Check for lstat() instead of dirent.h
Fixes build on mingw
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/file.c')
-rw-r--r-- | libavformat/file.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libavformat/file.c b/libavformat/file.c index df4c836684..c4201d7918 100644 --- a/libavformat/file.c +++ b/libavformat/file.c @@ -251,7 +251,7 @@ static int file_close(URLContext *h) static int file_open_dir(URLContext *h) { -#if HAVE_DIRENT_H +#if HAVE_LSTAT FileContext *c = h->priv_data; c->dir = opendir(h->filename); @@ -261,12 +261,12 @@ static int file_open_dir(URLContext *h) return 0; #else return AVERROR(ENOSYS); -#endif /* HAVE_DIRENT_H */ +#endif /* HAVE_LSTAT */ } static int file_read_dir(URLContext *h, AVIODirEntry **next) { -#if HAVE_DIRENT_H +#if HAVE_LSTAT FileContext *c = h->priv_data; struct dirent *dir; char *fullpath = NULL; @@ -319,18 +319,18 @@ static int file_read_dir(URLContext *h, AVIODirEntry **next) return 0; #else return AVERROR(ENOSYS); -#endif /* HAVE_DIRENT_H */ +#endif /* HAVE_LSTAT */ } static int file_close_dir(URLContext *h) { -#if HAVE_DIRENT_H +#if HAVE_LSTAT FileContext *c = h->priv_data; closedir(c->dir); return 0; #else return AVERROR(ENOSYS); -#endif /* HAVE_DIRENT_H */ +#endif /* HAVE_LSTAT */ } URLProtocol ff_file_protocol = { |