* [PATCH libmnl] example: netfilter: get rid of aligned_be64 definitions
@ 2015-05-25 18:51 Pablo Neira Ayuso
0 siblings, 0 replies; only message in thread
From: Pablo Neira Ayuso @ 2015-05-25 18:51 UTC (permalink / raw)
To: netfilter-devel; +Cc: felix.janda
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@netfilter.org>
---
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-05-25 18:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-25 18:51 [PATCH libmnl] example: netfilter: get rid of aligned_be64 definitions Pablo Neira Ayuso
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).