[PATCH libmnl] example: netfilter: get rid of aligned_be64 definitions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is defined in <linux/types.h>, which is included by the nfnetlink_* header
files.

Thus, we can get rid of u_int64_t which causes problems to musl according to
Felix Janda.

Signed-off-by: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx>
---
 examples/netfilter/nf-log.c   |    5 -----
 examples/netfilter/nf-queue.c |    5 -----
 2 files changed, 10 deletions(-)

diff --git a/examples/netfilter/nf-log.c b/examples/netfilter/nf-log.c
index 901bd80..4383b66 100644
--- a/examples/netfilter/nf-log.c
+++ b/examples/netfilter/nf-log.c
@@ -9,11 +9,6 @@
 #include <libmnl/libmnl.h>
 #include <linux/netfilter.h>
 #include <linux/netfilter/nfnetlink.h>
-
-#ifndef aligned_be64
-#define aligned_be64 u_int64_t __attribute__((aligned(8)))
-#endif
-
 #include <linux/netfilter/nfnetlink_log.h>
 
 static int parse_attr_cb(const struct nlattr *attr, void *data)
diff --git a/examples/netfilter/nf-queue.c b/examples/netfilter/nf-queue.c
index 72779f0..957e365 100644
--- a/examples/netfilter/nf-queue.c
+++ b/examples/netfilter/nf-queue.c
@@ -9,11 +9,6 @@
 #include <libmnl/libmnl.h>
 #include <linux/netfilter.h>
 #include <linux/netfilter/nfnetlink.h>
-
-#ifndef aligned_be64
-#define aligned_be64 u_int64_t __attribute__((aligned(8)))
-#endif
-
 #include <linux/netfilter/nfnetlink_queue.h>
 
 static int parse_attr_cb(const struct nlattr *attr, void *data)
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux