From c338e8f827429c1f689c2a71b98551ea83b6d6b2 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Fri, 29 Feb 2008 16:41:29 +0100 Subject: [PATCH] Move defines in compat_xtables.h down to avoid redeclaration errors Signed-off-by: Jan Engelhardt --- extensions/GNUmakefile.in | 4 ++-- extensions/compat_xtables.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/extensions/GNUmakefile.in b/extensions/GNUmakefile.in index 709fbc6..04b4071 100644 --- a/extensions/GNUmakefile.in +++ b/extensions/GNUmakefile.in @@ -5,10 +5,10 @@ srcdir := @srcdir@ abstop_srcdir := $(shell readlink -e ${top_srcdir}) abssrcdir := $(shell readlink -e ${srcdir}) -if (${abstop_srcdir},) +ifeq (${abstop_srcdir},) $(error Path resolution of ${top_srcdir} failed) endif -if (${abssrcdir},) +ifeq (${abssrcdir},) $(error Path resolution of ${srcdir} failed) endif diff --git a/extensions/compat_xtables.h b/extensions/compat_xtables.h index 184e495..e5b1e4c 100644 --- a/extensions/compat_xtables.h +++ b/extensions/compat_xtables.h @@ -2,6 +2,7 @@ #define _XTABLES_COMPAT_H 1 #include +#include "compat_xtnu.h" #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 22) # warning Kernels below 2.6.22 not supported anymore @@ -43,6 +44,5 @@ #endif #define xt_request_find_match xtnu_request_find_match -#include "compat_xtnu.h" #endif /* _XTABLES_COMPAT_H */