]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
Add the aligned_u64 typedef, it's defined in linux/types.h in the kernel.
authorMartin Josefsson <gandalf@wlug.westbo.se>
Sun, 11 Sep 2005 17:32:39 +0000 (17:32 +0000)
committerMartin Josefsson <gandalf@wlug.westbo.se>
Sun, 11 Sep 2005 17:32:39 +0000 (17:32 +0000)
We can't include that header since it conflicts with sys/types.h

include/iptables_common.h

index db5e93f630c70a0d4209b2a80d8e7f389c049a6c..28bda9f4217cdc90bdbf865fdca9c795e6ac135c 100644 (file)
@@ -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);