]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
Workaround missing ALIGN() macro.
authorStephen Hemminger <stephen.hemminger@vyatta.com>
Tue, 30 Mar 2010 00:37:49 +0000 (17:37 -0700)
committerStephen Hemminger <stephen.hemminger@vyatta.com>
Tue, 30 Mar 2010 00:37:49 +0000 (17:37 -0700)
tc/m_xt_old.c

index 0c7ec6042a224111c44eab346e370f9108aff7f0..3804d7f2f782d96b4fdb018968c8da52c5799ffc 100644 (file)
 #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";