Workaround missing ALIGN() macro
XT_ALIGN() calls ALIGN macro but ALIGN is in kernel source not userspace.
This commit is contained in:
parent
8881ece54f
commit
609ceb807d
|
|
@ -39,6 +39,11 @@
|
||||||
# define XT_LIB_DIR "/lib/xtables"
|
# define XT_LIB_DIR "/lib/xtables"
|
||||||
#endif
|
#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";
|
static const char *tname = "mangle";
|
||||||
|
|
||||||
char *lib_dir;
|
char *lib_dir;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue