From f1afea6b15cd1d311cd3762382808715ad6c1913042cf0e63e50d02252aec72c Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Thu, 31 May 2012 12:04:16 +0000 Subject: [PATCH] Resolve missing include header OBS-URL: https://build.opensuse.org/package/show/security:netfilter/conntrack-tools?expand=0&rev=25 --- conntrack-tools.changes | 5 +++++ conntrack-tools.spec | 2 ++ ct-null.diff | 25 +++++++++++++++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 ct-null.diff diff --git a/conntrack-tools.changes b/conntrack-tools.changes index 7ea2d02..4e1b5f9 100644 --- a/conntrack-tools.changes +++ b/conntrack-tools.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu May 31 12:03:49 UTC 2012 - jengelh@inai.de + +- Resolve compilation failure due to missing #include + ------------------------------------------------------------------- Sat May 26 18:38:34 UTC 2012 - jengelh@inai.de diff --git a/conntrack-tools.spec b/conntrack-tools.spec index a745bd3..b2452fb 100644 --- a/conntrack-tools.spec +++ b/conntrack-tools.spec @@ -24,6 +24,7 @@ Url: http://conntrack-tools.netfilter.org/ #Git-Clone: git://git.netfilter.org/conntrack-tools Source: http://netfilter.org/projects/conntrack-tools/files/%name-%version.tar.bz2 Source2: http://netfilter.org/projects/conntrack-tools/files/%name-%version.tar.bz2.sig +Patch1: ct-null.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: bison BuildRequires: flex >= 2.5.33 @@ -49,6 +50,7 @@ collector as well. %prep %setup -q +%patch -P 1 -p1 %build %configure --disable-static diff --git a/ct-null.diff b/ct-null.diff new file mode 100644 index 0000000..851e016 --- /dev/null +++ b/ct-null.diff @@ -0,0 +1,25 @@ + +[...] + CC parse.o +parse.c: In function 'msg2ct': +parse.c:258:34: error: 'NULL' undeclared (first use in this function) +parse.c:258:34: note: each undeclared identifier is reported only once for each function it appears in +parse.c: In function 'msg2exp': +parse.c:438:16: error: 'NULL' undeclared (first use in this function) + +--- + src/parse.c | 1 + + 1 file changed, 1 insertion(+) + +Index: conntrack-tools/src/parse.c +=================================================================== +--- conntrack-tools.orig/src/parse.c ++++ conntrack-tools/src/parse.c +@@ -17,6 +17,7 @@ + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + ++#include + #include "network.h" + + #include