+#ifndef HAVE_DIRENT_H
+ typedef void DIR;
+# ifndef FILENAME_MAX
+# define FILENAME_MAX (260)
+# endif
+ struct dirent
+ {
+ long d_ino; /* Always zero. */
+ unsigned short d_reclen; /* Always zero. */
+ unsigned short d_namlen; /* Length of name in d_name. */
+ char d_name[FILENAME_MAX]; /* File name. */
+ };
+# define opendir vlc_opendir
+# define readdir vlc_readdir
+# define closedir vlc_closedir
+ VLC_EXPORT( void *, vlc_opendir, ( const char * ) );
+ VLC_EXPORT( void *, vlc_readdir, ( void * ) );
+ VLC_EXPORT( int, vlc_closedir, ( void * ) );
+#else
+ struct dirent; /* forward declaration for vlc_symbols.h */
+# if !defined(__PLUGIN__)
+# define vlc_opendir NULL
+# define vlc_readdir NULL
+# define vlc_closedir NULL
+# endif
+#endif
+
+ VLC_EXPORT( void *, vlc_opendir_wrapper, ( const char * ) );
+ VLC_EXPORT( struct dirent *, vlc_readdir_wrapper, ( void * ) );
+ VLC_EXPORT( int, vlc_closedir_wrapper, ( void * ) );
+