Remove useless <fcntl.h> inclusions

This commit is contained in:
Rémi Denis-Courmont 2010-01-11 19:37:21 +02:00
parent 4f9272f730
commit e7ee6a9d86
22 changed files with 3 additions and 50 deletions

View File

@ -45,7 +45,6 @@
#include <vlc_demux.h>
#include <vlc_input.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <sys/mman.h>

View File

@ -36,13 +36,6 @@
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
#ifdef HAVE_FCNTL_H
# include <fcntl.h>
#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#elif defined( WIN32 ) && !defined( UNDER_CE )

View File

@ -42,9 +42,8 @@
# include <unistd.h>
#endif
#include <fcntl.h>
#include <sys/types.h>
#include <sys/poll.h>
#include <poll.h>
#include <errno.h>

View File

@ -33,7 +33,6 @@
#include <errno.h>
#include <sys/types.h>
#include <fcntl.h>
#include <time.h>
#include <unistd.h>
#include <poll.h>

View File

@ -35,7 +35,6 @@
# include <unistd.h>
#endif
#include <fcntl.h>
#include <sys/types.h>
/* Include dvbpsi headers */

View File

@ -36,7 +36,6 @@
# include <unistd.h>
#endif
#include <fcntl.h>
#include <sys/types.h>
#include <poll.h>

View File

@ -46,7 +46,6 @@
# include <unistd.h>
#endif
#include <fcntl.h>
#include <sys/types.h>
#ifdef HAVE_DVDREAD_DVD_READER_H

View File

@ -38,12 +38,6 @@
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#ifdef HAVE_FCNTL_H
# include <fcntl.h>
#endif
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif

View File

@ -33,7 +33,6 @@
#include <vlc_plugin.h>
#include <sys/types.h>
#include <fcntl.h>
#include <assert.h>
#include <vlc_sout.h>

View File

@ -44,10 +44,6 @@
#include <vlc_acl.h>
#include <vlc_charset.h>
#ifdef HAVE_FCNTL_H
# include <fcntl.h>
#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#elif defined( WIN32 ) && !defined( UNDER_CE )

View File

@ -30,6 +30,7 @@
#include <limits.h>
#include <errno.h>
#include <ctype.h>
#include <fcntl.h>
/* Utility function for scandir */
static int Filter( const char *foo )

View File

@ -31,6 +31,7 @@
#include "http.h"
#include <vlc_strings.h>
#include <errno.h>
#include <fcntl.h>
/****************************************************************************
* File and directory functions

View File

@ -38,11 +38,6 @@
#include <stdbool.h>
#include <errno.h>
#include <fcntl.h>
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>

View File

@ -25,7 +25,6 @@
#ifdef X11_SKINS
#include <unistd.h>
#include <fcntl.h>
#include <poll.h>
#include "x11_timer.hpp"

View File

@ -49,7 +49,6 @@
#ifdef HAVE_UNISTD_H
# include <sys/types.h>
# include <unistd.h>
# include <fcntl.h>
#endif
#ifdef HAVE_ARPA_INET_H
# include <arpa/inet.h>

View File

@ -30,7 +30,6 @@
#include <vlc_osd.h>
#include <vlc_memory.h>
#include <fcntl.h>
#include "dynamicoverlay.h"
/*****************************************************************************

View File

@ -50,7 +50,6 @@
# include <unistd.h>
# include <errno.h>
# include <sys/wait.h>
# include <fcntl.h>
# include <sys/socket.h>
# include <sys/poll.h>
# ifndef PF_LOCAL

View File

@ -36,10 +36,6 @@
#include <stdarg.h> /* va_list for BSD */
#ifdef HAVE_FCNTL_H
# include <fcntl.h> /* O_CREAT, O_TRUNC, O_WRONLY, O_SYNC */
#endif
#include <errno.h> /* errno */
#ifdef WIN32

View File

@ -50,7 +50,6 @@
# include <unistd.h>
#else
# include <io.h>
# include <fcntl.h>
#endif
#include <search.h>

View File

@ -45,10 +45,6 @@
# include <unistd.h>
#endif
#ifdef HAVE_FCNTL_H
# include <fcntl.h>
#endif
#ifdef HAVE_POLL
# include <poll.h>
#endif

View File

@ -35,12 +35,6 @@
#include <errno.h>
#include <assert.h>
#ifdef HAVE_FCNTL_H
# include <fcntl.h>
#endif
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif

View File

@ -31,7 +31,6 @@
#include <string.h>
#include <math.h>
#include <sys/fcntl.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <unistd.h>