]> git.pld-linux.org Git - packages/libmpd.git/commitdiff
include config.h to get HAVE_STRNDUP definition auto/th/libmpd-11.8.17-2
authorElan Ruusamäe <glen@delfi.ee>
Tue, 24 Mar 2015 04:54:17 +0000 (04:54 +0000)
committerElan Ruusamäe <glen@delfi.ee>
Tue, 24 Mar 2015 04:54:17 +0000 (04:54 +0000)
config.h.patch [new file with mode: 0644]
libmpd.spec

diff --git a/config.h.patch b/config.h.patch
new file mode 100644 (file)
index 0000000..3af2e5e
--- /dev/null
@@ -0,0 +1,13 @@
+--- libmpd-11.8.17/src/libmpd.h~       2011-08-17 12:31:47.000000000 +0000
++++ libmpd-11.8.17/src/libmpd.h        2015-03-24 04:53:24.619240669 +0000
+@@ -37,6 +37,10 @@
+ #define __W32API_USE_DLLIMPORT__ 1
+ #endif
++#ifdef HAVE_CONFIG_H
++#include "config.h"
++#endif
++
+ #include "libmpdclient.h"
+ #ifndef TRUE
index 0d5df6ea22fc8676841f7c0fc357ed5b607fee23..87b47a09d64ac7bd6a2faa815e7fb1769f8872a5 100644 (file)
@@ -2,11 +2,12 @@ Summary:      MPD client library
 Summary(pl.UTF-8):     Biblioteka kliencka MPD
 Name:          libmpd
 Version:       11.8.17
-Release:       1
+Release:       2
 License:       GPL v2+
 Group:         Libraries
 Source0:       http://download.sarine.nl/Programs/gmpc/%{version}/%{name}-%{version}.tar.gz
 # Source0-md5: 5ae3d87467d52aef3345407adb0a2488
+Patch0:                config.h.patch
 URL:           http://www.gmpclient.org/
 BuildRequires: autoconf
 BuildRequires: automake
@@ -48,6 +49,7 @@ Statyczna biblioteka kliencka MPD.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__libtoolize}
This page took 0.112959 seconds and 4 git commands to generate.