]> git.sesse.net Git - vlc/commitdiff
* src/extras/libc.c: Fixed compilation on systems without scandir().
authorChristophe Massiot <massiot@videolan.org>
Sat, 6 Aug 2005 11:45:34 +0000 (11:45 +0000)
committerChristophe Massiot <massiot@videolan.org>
Sat, 6 Aug 2005 11:45:34 +0000 (11:45 +0000)
include/vlc_common.h
src/extras/libc.c

index 35cf3dd5c1ff74db7ed04bb806cbadc0e2079b6a..617ccbc6d277b8e604d291933cbcb065fc65e100 100644 (file)
@@ -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__)
index a8c425201feefb32741d85e95c31ccf8780d50b5..0e72751b79f2cdf6468617dfe02753965c70be91 100644 (file)
 #   include <iconv.h>
 #endif
 
+#ifdef HAVE_DIRENT_H
+#   include <dirent.h>
+#endif
+
 /*****************************************************************************
  * getenv: just in case, but it should never be called
  *****************************************************************************/