diff --git a/tc/m_xt.c b/tc/m_xt.c index 3972d2d2..bfc49371 100644 --- a/tc/m_xt.c +++ b/tc/m_xt.c @@ -39,6 +39,11 @@ # define XT_LIB_DIR "/lib/xtables" #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 *tname = "mangle"; char *lib_dir;