]> git.ipfire.org Git - thirdparty/libnl.git/commitdiff
Re-adding #defines for __aligned_be64 for older kernels
authorRich Fought <rmf.aero@gmail.com>
Thu, 13 Dec 2012 22:23:28 +0000 (14:23 -0800)
committerRich Fought <rmf.aero@gmail.com>
Thu, 13 Dec 2012 22:23:28 +0000 (14:23 -0800)
include/linux/netfilter/nfnetlink_log.h
include/linux/netfilter/nfnetlink_queue.h

index 90c2c9575bac371e95a69874c4b217d66a8b9ea6..2cfbf139bc57d953bd3719b47cb4ef2e3811ec67 100644 (file)
@@ -5,6 +5,10 @@
  * and not any kind of function definitions.  It is shared between kernel and
  * userspace.  Don't put kernel specific stuff in here */
 
+#ifndef __aligned_be64
+#define __aligned_be64 u_int64_t __attribute__((aligned(8)))
+#endif
+
 #include <linux/types.h>
 #include <linux/netfilter/nfnetlink.h>
 
index 70ec8c2bc11a6c97cdf1866aa5e9b0743938feff..95af967d3a6f2dc97905b823fd69915ce39e5500 100644 (file)
@@ -4,6 +4,10 @@
 #include <linux/types.h>
 #include <linux/netfilter/nfnetlink.h>
 
+#ifndef __aligned_be64
+#define __aligned_be64 u_int64_t __attribute__((aligned(8)))
+#endif
+
 enum nfqnl_msg_types {
        NFQNL_MSG_PACKET,               /* packet from kernel to userspace */
        NFQNL_MSG_VERDICT,              /* verdict from userspace to kernel */