From 216f689df45eaccdb6cc0d97abd407c83a1478f6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 24 Mar 2015 04:54:17 +0000 Subject: [PATCH] include config.h to get HAVE_STRNDUP definition --- config.h.patch | 13 +++++++++++++ libmpd.spec | 4 +++- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 config.h.patch 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 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} -- 2.44.0