Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/mplayer
diff options
context:
space:
mode:
Diffstat (limited to 'extra/mplayer')
-rw-r--r--extra/mplayer/PKGBUILD7
-rw-r--r--extra/mplayer/mplayer-samba4-time-include.patch11
2 files changed, 16 insertions, 2 deletions
diff --git a/extra/mplayer/PKGBUILD b/extra/mplayer/PKGBUILD
index a4c9f007..911730a2 100644
--- a/extra/mplayer/PKGBUILD
+++ b/extra/mplayer/PKGBUILD
@@ -1,9 +1,12 @@
-source+=(mplayer-38101-sigcontext.patch)
-sha512sums+=('2f93d29f1d817a64104cad7153988583443932e6bb6d147747a1af5c7a76d24da0f3305466d43e803012dd31d89cb17e8c7cb7b19d2896165fa74cc06da346e0')
+source+=(mplayer-38101-sigcontext.patch
+ mplayer-samba4-time-include.patch)
+sha512sums+=('2f93d29f1d817a64104cad7153988583443932e6bb6d147747a1af5c7a76d24da0f3305466d43e803012dd31d89cb17e8c7cb7b19d2896165fa74cc06da346e0'
+ 'fba6dbd637897b0f7e239378914f1382e61eefa503c2f3bb912d5a1fe2e125c7554af7c979fed137b08c122f10d92373635691e773831b46dca45d968d394241')
eval "$(
declare -f prepare | \
sed '
+ /include-samba-4.0.patch/a patch -Np1 -i ../mplayer-samba4-time-include.patch
/revert-icl-fixes.patch/a patch -Np1 -i ../mplayer-38101-sigcontext.patch
'
)"
diff --git a/extra/mplayer/mplayer-samba4-time-include.patch b/extra/mplayer/mplayer-samba4-time-include.patch
new file mode 100644
index 00000000..79989304
--- /dev/null
+++ b/extra/mplayer/mplayer-samba4-time-include.patch
@@ -0,0 +1,11 @@
+diff -rauN mplayer-38101/stream/stream_smb.c mplayer-samba4-time-include-patch/stream/stream_smb.c
+--- mplayer-38101/stream/stream_smb.c 2019-03-21 08:28:16.708465910 +0100
++++ mplayer-samba4-time-include-patch/stream/stream_smb.c 2019-03-21 08:29:13.545760007 +0100
+@@ -18,6 +18,7 @@
+
+ #include "config.h"
+
++#include <time.h>
+ #include <samba-4.0/libsmbclient.h>
+ #include <unistd.h>
+