From: Marcin Banasiak Date: Sun, 22 Feb 2015 01:16:11 +0000 (+0100) Subject: Added -missing-include.patch (fixes crash on x32) X-Git-Tag: auto/th/poldek-0.30.1-3~4 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=1cf9975a4915d002df0c0c015510b9daf98ac503;p=packages%2Fpoldek.git Added -missing-include.patch (fixes crash on x32) --- diff --git a/poldek-missing-include.patch b/poldek-missing-include.patch new file mode 100644 index 0000000..d9271f9 --- /dev/null +++ b/poldek-missing-include.patch @@ -0,0 +1,16 @@ +--- a/trurlib/nmalloc.c ++++ b/trurlib/nmalloc.c +@@ -18,9 +18,10 @@ + Boston, MA 02111-1307, USA. + */ + +-/* +- $Id$ +- */ ++#if HAVE_CONFIG_H ++# include "config.h" ++#endif ++ + #include + #include + #include diff --git a/poldek.spec b/poldek.spec index 1401d34..c9aee19 100644 --- a/poldek.spec +++ b/poldek.spec @@ -56,6 +56,7 @@ Source101: %{name}-multilib-snap.conf Source102: %{name}-debuginfo-snap.conf Patch0: %{name}-size-type.patch Patch1: %{name}-config.patch +Patch2: %{name}-missing-include.patch URL: http://poldek.pld-linux.org/ BuildRequires: %{db_pkg}-devel >= %{ver_db}-%{ver_db_rel} BuildRequires: autoconf @@ -218,6 +219,7 @@ Moduły języka Python dla poldka. %setup -q %patch0 -p1 %patch1 -p1 +%patch2 -p1 %{__rm} m4/libtool.m4 m4/lt*.m4