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

Remove sys/types.h check

We assume it is present in plenty of places anyway
parent 23767715
...@@ -842,7 +842,7 @@ AC_EGREP_HEADER(strncasecmp,strings.h,[ ...@@ -842,7 +842,7 @@ AC_EGREP_HEADER(strncasecmp,strings.h,[
dnl Check for headers dnl Check for headers
AC_CHECK_HEADERS(getopt.h strings.h locale.h xlocale.h) AC_CHECK_HEADERS(getopt.h strings.h locale.h xlocale.h)
AC_CHECK_HEADERS(fcntl.h sys/types.h sys/time.h sys/ioctl.h sys/stat.h sys/mount.h) AC_CHECK_HEADERS(fcntl.h sys/time.h sys/ioctl.h sys/stat.h sys/mount.h)
AC_CHECK_HEADERS([arpa/inet.h netinet/in.h netinet/udplite.h sys/eventfd.h]) AC_CHECK_HEADERS([arpa/inet.h netinet/in.h netinet/udplite.h sys/eventfd.h])
AC_CHECK_HEADERS([net/if.h], [], [], AC_CHECK_HEADERS([net/if.h], [], [],
[ [
......
...@@ -34,9 +34,7 @@ ...@@ -34,9 +34,7 @@
#include "fs.h" #include "fs.h"
#include <vlc_access.h> #include <vlc_access.h>
#ifdef HAVE_SYS_TYPES_H #include <sys/types.h>
# include <sys/types.h>
#endif
#ifdef HAVE_SYS_STAT_H #ifdef HAVE_SYS_STAT_H
# include <sys/stat.h> # include <sys/stat.h>
#endif #endif
......
...@@ -33,9 +33,7 @@ ...@@ -33,9 +33,7 @@
#include <vlc_access.h> #include <vlc_access.h>
#include <errno.h> #include <errno.h>
#ifdef HAVE_SYS_TYPES_H #include <sys/types.h>
# include <sys/types.h>
#endif
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
# include <unistd.h> # include <unistd.h>
#elif defined( WIN32 ) && !defined( UNDER_CE ) #elif defined( WIN32 ) && !defined( UNDER_CE )
......
...@@ -42,9 +42,7 @@ ...@@ -42,9 +42,7 @@
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
# include <unistd.h> # include <unistd.h>
#endif #endif
#ifdef HAVE_SYS_TYPES_H #include <sys/types.h>
# include <sys/types.h>
#endif
#ifdef HAVE_SYS_STAT_H #ifdef HAVE_SYS_STAT_H
# include <sys/stat.h> # include <sys/stat.h>
#endif #endif
......
...@@ -35,9 +35,7 @@ ...@@ -35,9 +35,7 @@
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#ifdef HAVE_SYS_TYPES_H #include <sys/types.h>
# include <sys/types.h>
#endif
#ifdef HAVE_SYS_STAT_H #ifdef HAVE_SYS_STAT_H
# include <sys/stat.h> # include <sys/stat.h>
#endif #endif
......
...@@ -38,9 +38,7 @@ ...@@ -38,9 +38,7 @@
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
# include <unistd.h> # include <unistd.h>
#endif #endif
#ifdef HAVE_SYS_TYPES_H #include <sys/types.h>
# include <sys/types.h>
#endif
#ifdef HAVE_POLL #ifdef HAVE_POLL
# include <poll.h> # include <poll.h>
#endif #endif
......
...@@ -38,9 +38,7 @@ ...@@ -38,9 +38,7 @@
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#ifdef HAVE_SYS_TYPES_H #include <sys/types.h>
# include <sys/types.h>
#endif
#ifdef HAVE_SYS_STAT_H #ifdef HAVE_SYS_STAT_H
# include <sys/stat.h> # include <sys/stat.h>
#endif #endif
......
...@@ -39,9 +39,7 @@ ...@@ -39,9 +39,7 @@
# include <unistd.h> # include <unistd.h>
#endif #endif
#ifdef HAVE_SYS_TYPES_H #include <sys/types.h>
# include <sys/types.h>
#endif
#ifdef HAVE_SYS_STAT_H #ifdef HAVE_SYS_STAT_H
# include <sys/stat.h> # include <sys/stat.h>
#endif #endif
......
...@@ -37,9 +37,7 @@ ...@@ -37,9 +37,7 @@
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
# include <unistd.h> # include <unistd.h>
#endif #endif
#ifdef HAVE_SYS_TYPES_H #include <sys/types.h>
# include <sys/types.h>
#endif
#ifdef HAVE_POLL #ifdef HAVE_POLL
# include <poll.h> # include <poll.h>
#endif #endif
......
...@@ -51,9 +51,7 @@ ...@@ -51,9 +51,7 @@
#ifdef HAVE_SYS_STAT_H #ifdef HAVE_SYS_STAT_H
# include <sys/stat.h> # include <sys/stat.h>
#endif #endif
#ifdef HAVE_SYS_TYPES_H #include <sys/types.h>
# include <sys/types.h>
#endif
/* In Solaris (and perhaps others) PATH_MAX is in limits.h. */ /* In Solaris (and perhaps others) PATH_MAX is in limits.h. */
#include <limits.h> #include <limits.h>
......
...@@ -36,9 +36,6 @@ ...@@ -36,9 +36,6 @@
#include <vlc_input.h> #include <vlc_input.h>
#include <vlc_memory.h> #include <vlc_memory.h>
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#include <ctype.h> #include <ctype.h>
#include <vlc_demux.h> #include <vlc_demux.h>
......
...@@ -35,10 +35,6 @@ ...@@ -35,10 +35,6 @@
#include <vlc_input.h> #include <vlc_input.h>
#include <vlc_memory.h> #include <vlc_memory.h>
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#include <vlc_demux.h> #include <vlc_demux.h>
#include <vlc_charset.h> #include <vlc_charset.h>
......
...@@ -32,14 +32,12 @@ ...@@ -32,14 +32,12 @@
#include <vlc_codec.h> #include <vlc_codec.h>
#include <vlc_charset.h> #include <vlc_charset.h>
#include <sys/types.h>
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
# include <unistd.h> /* write(), close() */ # include <unistd.h> /* write(), close() */
#elif defined( WIN32 ) && !defined( UNDER_CE ) #elif defined( WIN32 ) && !defined( UNDER_CE )
# include <io.h> # include <io.h>
#endif #endif
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h> /* open() */
#endif
#ifdef HAVE_FCNTL_H #ifdef HAVE_FCNTL_H
# include <fcntl.h> # include <fcntl.h>
#endif #endif
......
...@@ -37,9 +37,7 @@ ...@@ -37,9 +37,7 @@
#include <vlc_block.h> #include <vlc_block.h>
#include <vlc_filter.h> #include <vlc_filter.h>
#ifdef HAVE_SYS_TYPES_H #include <sys/types.h>
# include <sys/types.h>
#endif
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
# include <unistd.h> # include <unistd.h>
......
...@@ -44,9 +44,7 @@ ...@@ -44,9 +44,7 @@
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
# include <unistd.h> # include <unistd.h>
#endif #endif
#ifdef HAVE_SYS_TYPES_H #include <sys/types.h>
# include <sys/types.h>
#endif
mediacontrol_RGBPicture * mediacontrol_RGBPicture *
mediacontrol_snapshot( mediacontrol_Instance *self, mediacontrol_snapshot( mediacontrol_Instance *self,
......
...@@ -46,9 +46,7 @@ ...@@ -46,9 +46,7 @@
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
# include <unistd.h> # include <unistd.h>
#endif #endif
#ifdef HAVE_SYS_TYPES_H #include <sys/types.h>
# include <sys/types.h>
#endif
mediacontrol_Instance* mediacontrol_new( int argc, char** argv, mediacontrol_Exception *exception ) mediacontrol_Instance* mediacontrol_new( int argc, char** argv, mediacontrol_Exception *exception )
{ {
......
...@@ -40,9 +40,7 @@ ...@@ -40,9 +40,7 @@
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
# include <unistd.h> # include <unistd.h>
#endif #endif
#ifdef HAVE_SYS_TYPES_H #include <sys/types.h>
# include <sys/types.h>
#endif
libvlc_time_t private_mediacontrol_unit_convert( libvlc_media_player_t *p_media_player, libvlc_time_t private_mediacontrol_unit_convert( libvlc_media_player_t *p_media_player,
mediacontrol_PositionKey from, mediacontrol_PositionKey from,
......
...@@ -37,9 +37,7 @@ ...@@ -37,9 +37,7 @@
#include <vlc_plugin.h> #include <vlc_plugin.h>
#include <vlc_cpu.h> #include <vlc_cpu.h>
#ifdef HAVE_SYS_TYPES_H #include <sys/types.h>
# include <sys/types.h>
#endif
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
# include <unistd.h> # include <unistd.h>
#endif #endif
......
...@@ -42,9 +42,7 @@ ...@@ -42,9 +42,7 @@
# include <dirent.h> # include <dirent.h>
#endif #endif
#ifdef HAVE_SYS_TYPES_H #include <sys/types.h>
# include <sys/types.h>
#endif
#ifdef HAVE_SYS_STAT_H #ifdef HAVE_SYS_STAT_H
# include <sys/stat.h> # include <sys/stat.h>
#endif #endif
......
...@@ -38,9 +38,7 @@ ...@@ -38,9 +38,7 @@
#include <stdio.h> /* sprintf() */ #include <stdio.h> /* sprintf() */
#include <string.h> /* strdup() */ #include <string.h> /* strdup() */
#ifdef HAVE_SYS_TYPES_H #include <sys/types.h>
# include <sys/types.h>
#endif
#if !defined(HAVE_DYNAMIC_PLUGINS) #if !defined(HAVE_DYNAMIC_PLUGINS)
/* no support for plugins */ /* no support for plugins */
......
...@@ -35,9 +35,7 @@ ...@@ -35,9 +35,7 @@
#include <errno.h> #include <errno.h>
#include <assert.h> #include <assert.h>
#ifdef HAVE_SYS_TYPES_H #include <sys/types.h>
# include <sys/types.h>
#endif
#ifdef HAVE_ARPA_INET_H #ifdef HAVE_ARPA_INET_H
# include <arpa/inet.h> # include <arpa/inet.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