aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libraries/libmpd/libmpd-internal.h.patch14
-rw-r--r--libraries/libmpd/libmpd.SlackBuild4
2 files changed, 18 insertions, 0 deletions
diff --git a/libraries/libmpd/libmpd-internal.h.patch b/libraries/libmpd/libmpd-internal.h.patch
new file mode 100644
index 0000000000000..c9be06407510b
--- /dev/null
+++ b/libraries/libmpd/libmpd-internal.h.patch
@@ -0,0 +1,14 @@
+X-Git-Url: http://repo.or.cz/w/libmpd.git/blobdiff_plain/604cbb97b24ea12881adc6c92e2fc14edfdf20da..4f946c01000fd97100e4a534b47f9c7ace0403df:/src/libmpd-internal.h
+
+diff --git a/src/libmpd-internal.h b/src/libmpd-internal.h
+index c84c3a4..30cdc85 100644
+--- a/src/libmpd-internal.h
++++ b/src/libmpd-internal.h
+@@ -21,6 +21,7 @@
+ #define __MPD_INTERNAL_LIB_
+
+ #include "libmpdclient.h"
++#include <config.h>
+ struct _MpdData_real;
+
+ typedef struct _MpdData_real {
diff --git a/libraries/libmpd/libmpd.SlackBuild b/libraries/libmpd/libmpd.SlackBuild
index 62dcbcfdb517a..31a0fba0a252b 100644
--- a/libraries/libmpd/libmpd.SlackBuild
+++ b/libraries/libmpd/libmpd.SlackBuild
@@ -73,6 +73,10 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# Fix build with gcc-4.9 and glibc-2.21 (Slackware-current)
+# http://repo.or.cz/w/libmpd.git/commit/4f946c01000fd97100e4a534b47f9c7ace0403df
+patch -p1 < $CWD/libmpd-internal.h.patch
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \