Commit 6c1ee3a2 authored by Christophe Massiot's avatar Christophe Massiot

* src/extras/libc.c: Fixed compilation on systems without scandir().

parent 1da4cee5
......@@ -841,6 +841,7 @@ static inline void _SetQWBE( uint8_t *p, uint64_t i_qw )
#ifndef HAVE_SCANDIR
# define scandir vlc_scandir
# define alphasort vlc_alphasort
struct dirent;
VLC_EXPORT( int, vlc_scandir, ( const char *name, struct dirent ***namelist, int (*filter) ( const struct dirent * ), int (*compar) ( const struct dirent **, const struct dirent ** ) ) );
VLC_EXPORT( int, vlc_alphasort, ( const struct dirent **a, const struct dirent **b ) );
#elif !defined(__PLUGIN__)
......
......@@ -38,6 +38,10 @@
# include <iconv.h>
#endif
#ifdef HAVE_DIRENT_H
# include <dirent.h>
#endif
/*****************************************************************************
* getenv: just in case, but it should never be called
*****************************************************************************/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment