From b5b1c1906f7db9fa9d7dce5ecc331ab4bbb793f8 Mon Sep 17 00:00:00 2001 From: KO Myung-Hun <komh78@gmail.com> Date: Thu, 8 Dec 2011 20:48:20 +0900 Subject: [PATCH] Fix compilation error due to pthread on OS/2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: RĂ©mi Denis-Courmont <remi@remlab.net> --- bin/vlc.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bin/vlc.c b/bin/vlc.c index 6969a1b5b4..4d20f89069 100644 --- a/bin/vlc.c +++ b/bin/vlc.c @@ -35,13 +35,20 @@ #include <stdbool.h> #include <locale.h> #include <signal.h> -#include <pthread.h> +#ifdef HAVE_PTHREAD_H +# include <pthread.h> +#endif #include <unistd.h> #ifdef __APPLE__ #include <string.h> #endif +#ifdef __OS2__ +# define pthread_t int +# define pthread_self() _gettid() +#endif + /* Explicit HACK */ extern void LocaleFree (const char *); -- 2.25.4