]> git.sesse.net Git - vlc/commitdiff
move mutex setkind hack to src/
authorRémi Denis-Courmont <rem@videolan.org>
Fri, 25 Jan 2008 16:51:54 +0000 (16:51 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Fri, 25 Jan 2008 16:51:54 +0000 (16:51 +0000)
include/vlc_threads.h
src/misc/threads.c

index e543936f2cb0c1ad54a3dbf1d67d23e145a75b1e..43c3cd9fea670b773089d3d7cdb09056d2d9e578 100644 (file)
@@ -56,9 +56,6 @@
 #      include <time.h>
 #   endif
 
-    /* This is not prototyped under Linux, though it exists. */
-    int pthread_mutexattr_setkind_np( pthread_mutexattr_t *attr, int kind );
-
 #else
 #   error no threads available on your system !
 
index 31e26ace082a6b40bd8a653b8ab3138bea1668fd..794e1c0a2b865c21a23e96b361a7c5acd980a40a 100644 (file)
@@ -225,6 +225,11 @@ int __vlc_threads_end( vlc_object_t *p_this )
     return VLC_SUCCESS;
 }
 
+#ifdef __linux__
+/* This is not prototyped under Linux, though it exists. */
+int pthread_mutexattr_setkind_np( pthread_mutexattr_t *attr, int kind );
+#endif
+
 /*****************************************************************************
  * vlc_mutex_init: initialize a mutex
  *****************************************************************************/