]> git.pld-linux.org Git - packages/poldek.git/commitdiff
Added -missing-include.patch (fixes crash on x32)
authorMarcin Banasiak <marcin.banasiak@gmail.com>
Sun, 22 Feb 2015 01:16:11 +0000 (02:16 +0100)
committerMarcin Banasiak <marcin.banasiak@gmail.com>
Sun, 22 Feb 2015 01:16:11 +0000 (02:16 +0100)
poldek-missing-include.patch [new file with mode: 0644]
poldek.spec

diff --git a/poldek-missing-include.patch b/poldek-missing-include.patch
new file mode 100644 (file)
index 0000000..d9271f9
--- /dev/null
@@ -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 <stddef.h>
+ #include <stdio.h>
+ #include <stdlib.h>
index 1401d343e22fdf8c2d3d3c6db8ab41e1d6a5dff0..c9aee19f633df8802c0a99f8dd12552c6324b9de 100644 (file)
@@ -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
 
This page took 0.027876 seconds and 4 git commands to generate.