diff --git a/bind-dyndb-ldap-pspacek-0228-Drop-unnecessary-define-_BSD_SOURCE.patch b/bind-dyndb-ldap-pspacek-0228-Drop-unnecessary-define-_BSD_SOURCE.patch new file mode 100644 index 0000000..42eeb6e --- /dev/null +++ b/bind-dyndb-ldap-pspacek-0228-Drop-unnecessary-define-_BSD_SOURCE.patch @@ -0,0 +1,26 @@ +From 1b5105e3ab92f2a898313da5f7e20e6f3e9d1d2a Mon Sep 17 00:00:00 2001 +From: Petr Spacek +Date: Mon, 24 Feb 2014 16:48:09 +0100 +Subject: [PATCH] Drop unnecessary #define _BSD_SOURCE. + +Signed-off-by: Petr Spacek +--- + src/krb5_helper.c | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/src/krb5_helper.c b/src/krb5_helper.c +index d1787209483f2ae49b480492290ff5d4bafc677c..71f4fff9fec551abbd81e25c59de80d2ded0dfc6 100644 +--- a/src/krb5_helper.c ++++ b/src/krb5_helper.c +@@ -15,8 +15,6 @@ + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +-#define _BSD_SOURCE +- + #include + #include + #include +-- +1.8.5.3 + diff --git a/bind-dyndb-ldap.spec b/bind-dyndb-ldap.spec index 16fcea7..4acbc64 100644 --- a/bind-dyndb-ldap.spec +++ b/bind-dyndb-ldap.spec @@ -2,7 +2,7 @@ Name: bind-dyndb-ldap Version: 4.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: LDAP back-end plug-in for BIND Group: System Environment/Libraries @@ -18,6 +18,8 @@ BuildRequires: automake, autoconf, libtool Requires: bind >= 32:9.9.0-1 +Patch0: bind-dyndb-ldap-pspacek-0228-Drop-unnecessary-define-_BSD_SOURCE.patch + %description This package provides an LDAP back-end plug-in for BIND. It features support for dynamic updates and internal caching, to lift the load @@ -27,6 +29,8 @@ off of your LDAP server. %prep %setup -q -n %{name}-%{VERSION} +%patch0 -p1 -b .p0228 + %build export CFLAGS="`isc-config.sh --cflags dns` $RPM_OPT_FLAGS" autoreconf -fiv @@ -75,6 +79,9 @@ rm -rf %{buildroot} %changelog +* Mon Feb 24 2014 Petr Spacek 4.1-2 +- remove deprecated define _BSD_SOURCE + * Mon Feb 24 2014 Petr Spacek 4.1-1 - update to 4.1