Commit 1da83920 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Remove useless <dirent.h> check

parent 744ff759
...@@ -827,9 +827,6 @@ then ...@@ -827,9 +827,6 @@ then
fi fi
]) ])
dnl Check for dirent
AC_CHECK_HEADERS(dirent.h)
dnl Mac OS X and other OSes don't have declaration for nanosleep dnl Mac OS X and other OSes don't have declaration for nanosleep
if test "${SYS}" != "mingw32" -a "${SYS}" != "mingwce"; then if test "${SYS}" != "mingw32" -a "${SYS}" != "mingwce"; then
AC_MSG_CHECKING(for nanosleep in time.h) AC_MSG_CHECKING(for nanosleep in time.h)
......
...@@ -46,9 +46,6 @@ ...@@ -46,9 +46,6 @@
# include <io.h> # include <io.h>
#endif #endif
#ifdef HAVE_DIRENT_H
# include <dirent.h>
#endif
#ifdef __sun__ #ifdef __sun__
static inline int dirfd (DIR *dir) static inline int dirfd (DIR *dir)
{ {
......
...@@ -49,10 +49,6 @@ ...@@ -49,10 +49,6 @@
# include <io.h> # include <io.h>
#endif #endif
#ifdef HAVE_DIRENT_H
# include <dirent.h>
#endif
/* stat() support for large files on win32 */ /* stat() support for large files on win32 */
#if defined( WIN32 ) && !defined( UNDER_CE ) #if defined( WIN32 ) && !defined( UNDER_CE )
# define stat _stati64 # define stat _stati64
......
...@@ -62,10 +62,6 @@ ...@@ -62,10 +62,6 @@
#include <vector> #include <vector>
#include <algorithm> #include <algorithm>
#ifdef HAVE_DIRENT_H
# include <dirent.h>
#endif
/* libebml and matroska */ /* libebml and matroska */
#include "ebml/EbmlHead.h" #include "ebml/EbmlHead.h"
#include "ebml/EbmlSubHead.h" #include "ebml/EbmlSubHead.h"
......
...@@ -42,11 +42,6 @@ ...@@ -42,11 +42,6 @@
# include <direct.h> # include <direct.h>
#endif #endif
#ifdef HAVE_DIRENT_H
# include <dirent.h>
#endif
#if defined( HAVE_ZLIB_H ) #if defined( HAVE_ZLIB_H )
# include <zlib.h> # include <zlib.h>
# include <errno.h> # include <errno.h>
......
...@@ -30,9 +30,6 @@ ...@@ -30,9 +30,6 @@
#elif defined( WIN32 ) && !defined( UNDER_CE ) #elif defined( WIN32 ) && !defined( UNDER_CE )
# include <direct.h> # include <direct.h>
#endif #endif
#ifdef HAVE_DIRENT_H
# include <dirent.h>
#endif
#include <fstream> #include <fstream>
......
...@@ -36,9 +36,6 @@ ...@@ -36,9 +36,6 @@
#include <sys/types.h> #include <sys/types.h>
#include <errno.h> #include <errno.h>
#ifdef HAVE_DIRENT_H
# include <dirent.h>
#endif
#ifdef HAVE_SYS_STAT_H #ifdef HAVE_SYS_STAT_H
# include <sys/stat.h> # include <sys/stat.h>
#endif #endif
......
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
#include <vlc_common.h> #include <vlc_common.h>
#include <errno.h> #include <errno.h>
#include <dirent.h>
#undef iconv_t #undef iconv_t
#undef iconv_open #undef iconv_open
...@@ -42,10 +43,6 @@ ...@@ -42,10 +43,6 @@
# include <iconv.h> # include <iconv.h>
#endif #endif
#ifdef HAVE_DIRENT_H
# include <dirent.h>
#endif
#ifdef HAVE_FORK #ifdef HAVE_FORK
# include <signal.h> # include <signal.h>
# include <unistd.h> # include <unistd.h>
......
...@@ -35,10 +35,6 @@ ...@@ -35,10 +35,6 @@
#include <vlc_fs.h> #include <vlc_fs.h>
#include <vlc_url.h> #include <vlc_url.h>
#ifdef HAVE_DIRENT_H
# include <dirent.h>
#endif
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
# include <unistd.h> # include <unistd.h>
#endif #endif
......
...@@ -39,10 +39,6 @@ ...@@ -39,10 +39,6 @@
#include <string.h> /* strdup() */ #include <string.h> /* strdup() */
#include <assert.h> #include <assert.h>
#ifdef HAVE_DIRENT_H
# include <dirent.h>
#endif
#include <sys/types.h> #include <sys/types.h>
#ifdef HAVE_SYS_STAT_H #ifdef HAVE_SYS_STAT_H
# include <sys/stat.h> # include <sys/stat.h>
......
...@@ -43,9 +43,7 @@ ...@@ -43,9 +43,7 @@
#endif #endif
#include <errno.h> #include <errno.h>
#include <sys/types.h> #include <sys/types.h>
#ifdef HAVE_DIRENT_H #include <dirent.h>
# include <dirent.h>
#endif
#ifdef HAVE_SYS_STAT_H #ifdef HAVE_SYS_STAT_H
# include <sys/stat.h> # include <sys/stat.h>
#endif #endif
......
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