Commit 609ceb80 authored by Stephen Hemminger's avatar Stephen Hemminger

Workaround missing ALIGN() macro

XT_ALIGN() calls ALIGN macro but ALIGN is in kernel source not userspace.
parent 8881ece5
...@@ -39,6 +39,11 @@ ...@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment