[packages/libmpd] include config.h to get HAVE_STRNDUP definition
glen
glen at pld-linux.org
Tue Mar 24 05:54:46 CET 2015
commit 216f689df45eaccdb6cc0d97abd407c83a1478f6
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Tue Mar 24 04:54:17 2015 +0000
include config.h to get HAVE_STRNDUP definition
config.h.patch | 13 +++++++++++++
libmpd.spec | 4 +++-
2 files changed, 16 insertions(+), 1 deletion(-)
---
diff --git a/libmpd.spec b/libmpd.spec
index 0d5df6e..87b47a0 100644
--- a/libmpd.spec
+++ b/libmpd.spec
@@ -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}
diff --git a/config.h.patch b/config.h.patch
new file mode 100644
index 0000000..3af2e5e
--- /dev/null
+++ b/config.h.patch
@@ -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
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libmpd.git/commitdiff/216f689df45eaccdb6cc0d97abd407c83a1478f6
More information about the pld-cvs-commit
mailing list