]> git.sesse.net Git - vlc/commitdiff
Remove useless <fcntl.h> inclusions
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 11 Jan 2010 17:37:21 +0000 (19:37 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 11 Jan 2010 17:37:21 +0000 (19:37 +0200)
22 files changed:
modules/access/alsa.c
modules/access/dv.c
modules/access/dvb/access.c
modules/access/dvb/en50221.c
modules/access/dvb/http.c
modules/access/dvb/scan.c
modules/access/dvdread.c
modules/access/mms/mmstu.c
modules/access_output/udp.c
modules/control/http/http.h
modules/control/http/mvar.c
modules/control/http/util.c
modules/control/telnet.c
modules/gui/skins2/x11/x11_timer.cpp
modules/stream_out/rtp.c
modules/video_filter/dynamicoverlay/dynamicoverlay_list.c
src/extras/libc.c
src/misc/messages.c
src/misc/objects.c
src/network/httpd.c
src/network/tcp.c
test/dynamicoverlay/overlay-test.c

index a86054d3de533c39c94b2e9791604e13352bb7da..08a661eb7c54c294f7062b9abb0f62a6ec8da716 100644 (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>
index 20079512b45978fda690a23b9d10d63008af090b..e75e87d6b2abfd4ba6af5097f1f184d884e4929d 100644 (file)
 #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 )
index c4b73381afe89c57a554748385967289287eb9d6..bf628b40507edd5acd5a051fd824b4a31355b19e 100644 (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>
 
index c3504ac2ed39c85ac5ac94519b6bc220ddc377fc..6a24fced5b9b69fced8cae8efe2bf34723c7e5df 100644 (file)
@@ -33,7 +33,6 @@
 #include <errno.h>
 
 #include <sys/types.h>
-#include <fcntl.h>
 #include <time.h>
 #include <unistd.h>
 #include <poll.h>
index f79216dd94fc73ff874b1d5224117315103fdf31..159a0d72951b18698f87b8f35b076d628275f7f0 100644 (file)
@@ -35,7 +35,6 @@
 #   include <unistd.h>
 #endif
 
-#include <fcntl.h>
 #include <sys/types.h>
 
 /* Include dvbpsi headers */
index f41364d5164cf14f3b50583d05be586bde63d7e1..5ee7be99b529640af402cb60b7f51e6572227d33 100644 (file)
@@ -36,7 +36,6 @@
 #   include <unistd.h>
 #endif
 
-#include <fcntl.h>
 #include <sys/types.h>
 #include <poll.h>
 
index 8b4a05b27f094da0ebf649161395cf3f5763a32a..641fab5ed7b05ff47f7234ea5fca2ac7593de913 100644 (file)
@@ -46,7 +46,6 @@
 #   include <unistd.h>
 #endif
 
-#include <fcntl.h>
 #include <sys/types.h>
 
 #ifdef HAVE_DVDREAD_DVD_READER_H
index ce2d9217bc15a1ad8dbd69d105c217254b8ea262..12fb209a9f98c023618efb102cfd7f8cdac03b05 100644 (file)
 #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
index afb9bf16dc417ca5500eb41436169fabcf8e9b99..21ff9a4de49f2423a6150c2508f3a296c546b0f7 100644 (file)
@@ -33,7 +33,6 @@
 #include <vlc_plugin.h>
 
 #include <sys/types.h>
-#include <fcntl.h>
 #include <assert.h>
 
 #include <vlc_sout.h>
index 1ea3726da73b02a432426b502d217fd964e99c8f..99b834670f46efb0991c20bcd646e2ee6d66d7a6 100644 (file)
 #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 )
index 13a5b9864256a480b3e8c1d0ba6535be786f2b4c..28862cd5e7847671d6d75b925991c00ecfe87e50 100644 (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 )
index 7f21ebc93a683ef798e97d7266fa4ff5b792e4e7..17e9115bf3981f51538044b387bf1ba2616d3ad2 100644 (file)
@@ -31,6 +31,7 @@
 #include "http.h"
 #include <vlc_strings.h>
 #include <errno.h>
+#include <fcntl.h>
 
 /****************************************************************************
  * File and directory functions
index c2370cbec5739d9ec2334a441b08cfca8c9d6211..0b63fd1b962cd9b8ed11754021f6ac85cecc861c 100644 (file)
 #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>
index 1719748c03c7d5b8eb44a7ca974d07e2389a76f9..3e0a55309bca417e6c593eabce168d28385f8141 100644 (file)
@@ -25,7 +25,6 @@
 #ifdef X11_SKINS
 
 #include <unistd.h>
-#include <fcntl.h>
 #include <poll.h>
 
 #include "x11_timer.hpp"
index 1f6ee7254370f451cd475b35ac5ee1e25bb16e47..d78a12d9a3292c0f421d6ebea1513fe2808d043c 100644 (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>
index 06d4170c8798d351fbdaa672e18f8a25a2d58d7d..66ad130a1b4c644c2dea294adce25256609b852b 100644 (file)
@@ -30,7 +30,6 @@
 #include <vlc_osd.h>
 #include <vlc_memory.h>
 
-#include <fcntl.h>
 #include "dynamicoverlay.h"
 
 /*****************************************************************************
index 738ed4923174a40386e2f5bf2d67b42767edd2bb..f262b7de95e25e462095e3ffe5839f1512ac2822 100644 (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
index 62d5b7c4fc948c8d6ce4c71f111e68ce88451d2e..30cb00455a526f714a1bf4338a0afb8bf9ac94e5 100644 (file)
 
 #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
index f7eb7db0bc42bcb8221e81ac6085e62ddadf991c..59391df6738ba69fc586e45bbbcc9a05212c7aef 100644 (file)
@@ -50,7 +50,6 @@
 # include <unistd.h>
 #else
 # include <io.h>
-# include <fcntl.h>
 #endif
 
 #include <search.h>
index 4b505683ce22ee33e6e31464ad566e323a8309e4..cad49ed8012ba028baff6da0568e369ed2e56d12 100644 (file)
 #   include <unistd.h>
 #endif
 
-#ifdef HAVE_FCNTL_H
-#   include <fcntl.h>
-#endif
-
 #ifdef HAVE_POLL
 # include <poll.h>
 #endif
index 0347010b2eb7426352c99fd5293dc0f531fe2abf..cd5fa021a5a56bc04c071800f6f1dc3e4317ab00 100644 (file)
 #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
index 63774d5e47c9ebcd58f66dc0fd7fee19b3bd8e32..e2761e5ff5787d6a70f835baa459e7e651cee2c4 100644 (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>