From: Stephen Hemminger Date: Tue, 30 Mar 2010 00:37:49 +0000 (-0700) Subject: Workaround missing ALIGN() macro. X-Git-Tag: v2.6.34~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=edaaa11e5a3cf2c9c1a395e95926174718cba198;p=thirdparty%2Fiproute2.git Workaround missing ALIGN() macro. --- diff --git a/tc/m_xt_old.c b/tc/m_xt_old.c index 0c7ec6042..3804d7f2f 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";