From edaaa11e5a3cf2c9c1a395e95926174718cba198 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 29 Mar 2010 17:37:49 -0700 Subject: [PATCH] Workaround missing ALIGN() macro. --- tc/m_xt_old.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tc/m_xt_old.c b/tc/m_xt_old.c index 0c7ec604..3804d7f2 100644 --- a/tc/m_xt_old.c +++ b/tc/m_xt_old.c @@ -40,6 +40,11 @@ #include "xt-internal.h" #endif +#ifndef ALIGN +#define ALIGN(x,a) __ALIGN_MASK(x,(typeof(x))(a)-1) +#define __ALIGN_MASK(x,mask) (((x)+(mask))&~(mask)) +#endif + static const char *pname = "tc-ipt"; static const char *tname = "mangle"; static const char *pversion = "0.2";