From: Martin Josefsson Date: Sun, 11 Sep 2005 17:32:39 +0000 (+0000) Subject: Add the aligned_u64 typedef, it's defined in linux/types.h in the kernel. X-Git-Tag: v1.3.4~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ef4c8fc6d08e2b8c03dc742182184a5e4a9b5e7;p=thirdparty%2Fiptables.git Add the aligned_u64 typedef, it's defined in linux/types.h in the kernel. We can't include that header since it conflicts with sys/types.h --- diff --git a/include/iptables_common.h b/include/iptables_common.h index db5e93f6..28bda9f4 100644 --- a/include/iptables_common.h +++ b/include/iptables_common.h @@ -7,6 +7,10 @@ enum exittype { PARAMETER_PROBLEM, VERSION_PROBLEM }; + +/* this is a special 64bit data type that is 8-byte aligned */ +#define aligned_u64 unsigned long long __attribute__((aligned(8))) + extern void exit_printhelp() __attribute__((noreturn)); extern void exit_tryhelp(int) __attribute__((noreturn)); int check_inverse(const char option[], int *invert, int *optind, int argc);