From c51906de3a23ad6580c2c1373ef71d9c05f92993 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Kempf Date: Thu, 14 Mar 2013 15:43:20 +0100 Subject: [PATCH] Contribs: fix vpx threading on Win32 --- contrib/src/vpx/libvpx-win32.patch | 11 +++++++++++ contrib/src/vpx/rules.mak | 3 +++ 2 files changed, 14 insertions(+) create mode 100644 contrib/src/vpx/libvpx-win32.patch diff --git a/contrib/src/vpx/libvpx-win32.patch b/contrib/src/vpx/libvpx-win32.patch new file mode 100644 index 0000000000..fcf9862a6c --- /dev/null +++ b/contrib/src/vpx/libvpx-win32.patch @@ -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 + static void once(void (*func)(void)) + { diff --git a/contrib/src/vpx/rules.mak b/contrib/src/vpx/rules.mak index b8f07460ca..df8c3140bd 100644 --- a/contrib/src/vpx/rules.mak +++ b/contrib/src/vpx/rules.mak @@ -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 \ -- 2.39.2