From 91040d968ab408a13eba044f309cc285767320d7 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Thu, 17 May 2018 12:10:08 +0200 Subject: extra/mplayer: added patch around missing struct sigcontext in cpudetect.c --- extra/mplayer/PKGBUILD | 9 +++++++++ extra/mplayer/mplayer-38101-sigcontext.patch | 11 +++++++++++ 2 files changed, 20 insertions(+) create mode 100644 extra/mplayer/PKGBUILD create mode 100644 extra/mplayer/mplayer-38101-sigcontext.patch (limited to 'extra/mplayer') diff --git a/extra/mplayer/PKGBUILD b/extra/mplayer/PKGBUILD new file mode 100644 index 00000000..aba5b24b --- /dev/null +++ b/extra/mplayer/PKGBUILD @@ -0,0 +1,9 @@ +source+=(mplayer-38101-sigcontext.patch) +sha256sums+=('2f93d29f1d817a64104cad7153988583443932e6bb6d147747a1af5c7a76d24da0f3305466d43e803012dd31d89cb17e8c7cb7b19d2896165fa74cc06da346e0') + +eval "$( + declare -f prepare | \ + sed ' + /patch/a patch -Np1 -i ../mplayer-38101-sigcontext.patch + ' +)" diff --git a/extra/mplayer/mplayer-38101-sigcontext.patch b/extra/mplayer/mplayer-38101-sigcontext.patch new file mode 100644 index 00000000..31e2d4c8 --- /dev/null +++ b/extra/mplayer/mplayer-38101-sigcontext.patch @@ -0,0 +1,11 @@ +diff -rauN mplayer-38101/cpudetect.c mplayer-38101-sigcontext-patch/cpudetect.c +--- mplayer-38101/cpudetect.c 2018-05-17 11:15:24.975263641 +0200 ++++ mplayer-38101-sigcontext-patch/cpudetect.c 2018-05-17 12:04:52.811930307 +0200 +@@ -38,6 +38,7 @@ + #include + #include + #elif defined(__linux__) ++#define __USE_MISC // for struct struct sigcontext + #include + #elif defined(__MINGW32__) || defined(__CYGWIN__) + #include -- cgit v1.2.3-70-g09d2