[vlc-commits] threads: fix search.h include
    Thomas Guillem 
    git at videolan.org
       
    Tue Oct 23 14:54:08 CEST 2018
    
    
  
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Oct 23 13:30:26 2018 +0200| [18651d08ca5e35f5076f940d84ae4acb394f38cb] | committer: Thomas Guillem
threads: fix search.h include
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=18651d08ca5e35f5076f940d84ae4acb394f38cb
---
 src/misc/threads.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/misc/threads.c b/src/misc/threads.c
index e66b21a408..54643ba4aa 100644
--- a/src/misc/threads.c
+++ b/src/misc/threads.c
@@ -53,7 +53,9 @@ void vlc_global_mutex (unsigned n, bool acquire)
 }
 
 #ifndef NDEBUG
-# include <search.h>
+# ifdef HAVE_SEARCH_H
+#  include <search.h>
+# endif
 
 struct vlc_lock_mark
 {
    
    
More information about the vlc-commits
mailing list