summaryrefslogtreecommitdiff
path: root/multimedia/vlc/patches/patch-ac
blob: a66bf64bf949842969ae4cf497d1d2418d54db67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
$NetBSD: patch-ac,v 1.3 2008/02/20 13:11:00 xtraeme Exp $

--- include/vlc_threads_funcs.h.orig	2007-11-26 14:08:12.000000000 +0100
+++ include/vlc_threads_funcs.h
@@ -111,7 +111,7 @@ static inline int __vlc_mutex_lock( cons
     i_result = pthread_mutex_lock( &p_mutex->mutex );
     if ( i_result )
     {
-        i_thread = (int)pthread_self();
+        i_thread = (intptr_t)pthread_self();
         psz_error = strerror(i_result);
     }
 
@@ -184,7 +184,7 @@ static inline int __vlc_mutex_unlock( co
     i_result = pthread_mutex_unlock( &p_mutex->mutex );
     if ( i_result )
     {
-        i_thread = (int)pthread_self();
+        i_thread = (intptr_t)pthread_self();
         psz_error = strerror(i_result);
     }
 
@@ -322,7 +322,7 @@ static inline int __vlc_cond_signal( con
     i_result = pthread_cond_signal( &p_condvar->cond );
     if ( i_result )
     {
-        i_thread = (int)pthread_self();
+        i_thread = (intptr_t)pthread_self();
         psz_error = strerror(i_result);
     }
 
@@ -512,7 +512,7 @@ static inline int __vlc_cond_wait( const
 
     if ( i_result )
     {
-        i_thread = (int)pthread_self();
+        i_thread = (intptr_t)pthread_self();
         psz_error = strerror(i_result);
     }