Workaround missing ALIGN() macro.

This commit is contained in:
Stephen Hemminger 2010-03-29 17:37:49 -07:00
parent 1b84ad557e
commit edaaa11e5a
1 changed files with 5 additions and 0 deletions

View File

@ -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";