[vlc-devel] [RFC PATCH 1/2] vlc_threads: include errno.h for all oses

Thomas Guillem thomas at gllm.fr
Mon Nov 30 14:57:48 CET 2015


You need errno.h to handle vlc_cond_timedwait returns.
---
 include/vlc_threads.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/vlc_threads.h b/include/vlc_threads.h
index 9002249..2eedbdf 100644
--- a/include/vlc_threads.h
+++ b/include/vlc_threads.h
@@ -28,6 +28,8 @@
 #ifndef VLC_THREADS_H_
 #define VLC_THREADS_H_
 
+#include <errno.h>
+
 /**
  * \ingroup os
  * \defgroup thread Threads and synchronization primitives
@@ -99,8 +101,6 @@ static inline int vlc_poll(struct pollfd *fds, unsigned nfds, int timeout)
 # define poll(u,n,t) vlc_poll(u, n, t)
 
 #elif defined (__OS2__)
-# include <errno.h>
-
 typedef struct vlc_thread *vlc_thread_t;
 typedef struct
 {
-- 
2.1.4



More information about the vlc-devel mailing list