]> git.sesse.net Git - vlc/commitdiff
Contribs: fix vpx threading on Win32
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 14 Mar 2013 14:43:20 +0000 (15:43 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 14 Mar 2013 14:43:20 +0000 (15:43 +0100)
contrib/src/vpx/libvpx-win32.patch [new file with mode: 0644]
contrib/src/vpx/rules.mak

diff --git a/contrib/src/vpx/libvpx-win32.patch b/contrib/src/vpx/libvpx-win32.patch
new file mode 100644 (file)
index 0000000..fcf9862
--- /dev/null
@@ -0,0 +1,11 @@
+--- libvpx/vp8/common/generic/systemdependent.c        2013-03-14 15:39:20.284261976 +0100
++++ libvpx.new/vp8/common/generic/systemdependent.c    2013-03-14 15:39:01.423974364 +0100
+@@ -87,7 +87,7 @@
+ #endif
+-#if HAVE_PTHREAD_H
++#if HAVE_PTHREAD_H && !defined(_WIN32)
+ #include <pthread.h>
+ static void once(void (*func)(void))
+ {
index b8f07460cafbbe33de3349fd8ba25ecca5841700..df8c3140bda64543148f55b4bf92dfc85123cb9a 100644 (file)
@@ -17,6 +17,9 @@ ifdef HAVE_MACOSX
        $(APPLY) $(SRC)/vpx/libvpx-mac.patch
        $(APPLY) $(SRC)/vpx/libvpx-mac-mountain-lion.patch
 endif
+ifdef HAVE_WIN32
+       $(APPLY) $(SRC)/vpx/libvpx-win32.patch
+endif
 ifneq ($(which bash),/bin/bash)
        sed -i.orig \
                s,^\#!/bin/bash,\#!`which bash`,g \