[vlc-commits] Rationalize #includes

Rémi Denis-Courmont git at videolan.org
Mon Sep 10 15:22:25 CEST 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Sep 10 16:22:05 2012 +0300| [cdf16f92e0f26d9035820cadc5cfefabd429bc52] | committer: Rémi Denis-Courmont

Rationalize #includes

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cdf16f92e0f26d9035820cadc5cfefabd429bc52
---

 src/posix/thread.c |   11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/src/posix/thread.c b/src/posix/thread.c
index 5da8805..1bd519b 100644
--- a/src/posix/thread.c
+++ b/src/posix/thread.c
@@ -33,31 +33,26 @@
 
 #include "libvlc.h"
 #include <stdarg.h>
-#include <assert.h>
-#include <unistd.h> /* fsync() */
 #include <signal.h>
 #include <errno.h>
 #include <time.h>
+#include <assert.h>
 
+#include <sys/types.h>
+#include <unistd.h> /* fsync() */
 #include <pthread.h>
 #include <sched.h>
-#include <sys/time.h> /* gettimeofday() */
 
 #ifdef __linux__
 # include <sys/syscall.h> /* SYS_gettid */
 #endif
-
 #ifdef HAVE_EXECINFO_H
 # include <execinfo.h>
 #endif
-
 #ifdef __APPLE__
 # include <mach/mach_init.h> /* mach_task_self in semaphores */
 #endif
-
 #if defined(__SunOS)
-# include <unistd.h>
-# include <sys/types.h>
 # include <sys/processor.h>
 # include <sys/pset.h>
 #endif



More information about the vlc-commits mailing list