aboutsummaryrefslogtreecommitdiffstats
path: root/main/opennhrp/0002-all-fix-includes-and-types-to-honor-standards.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2015-07-24 16:09:30 +0300
committerTimo Teräs <timo.teras@iki.fi>2015-07-24 16:09:30 +0300
commit0df48acd155da7f5a1a6ed28ffa0c3d3624084a5 (patch)
tree5b9f28fb5973a49b7e8b8faada465ccf96644548 /main/opennhrp/0002-all-fix-includes-and-types-to-honor-standards.patch
parentdf1c822e76d712cb306e491fd652b5acb54acaa0 (diff)
downloadaports-0df48acd155da7f5a1a6ed28ffa0c3d3624084a5.tar.bz2
aports-0df48acd155da7f5a1a6ed28ffa0c3d3624084a5.tar.xz
main/opennhrp: cherry-pick upstream fixes
Diffstat (limited to 'main/opennhrp/0002-all-fix-includes-and-types-to-honor-standards.patch')
-rw-r--r--main/opennhrp/0002-all-fix-includes-and-types-to-honor-standards.patch62
1 files changed, 62 insertions, 0 deletions
diff --git a/main/opennhrp/0002-all-fix-includes-and-types-to-honor-standards.patch b/main/opennhrp/0002-all-fix-includes-and-types-to-honor-standards.patch
new file mode 100644
index 0000000000..12bba56e5e
--- /dev/null
+++ b/main/opennhrp/0002-all-fix-includes-and-types-to-honor-standards.patch
@@ -0,0 +1,62 @@
+From 80c569aa4b4efbf7d24c5cde8a33ebff2a4b6685 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Timo=20Ter=C3=A4s?= <timo.teras@iki.fi>
+Date: Thu, 26 Sep 2013 19:24:45 +0300
+Subject: [PATCH] all: fix includes, and types to honor standards
+
+fixes build against musl.
+---
+ nhrp/nhrp_common.h | 2 +-
+ nhrp/opennhrp.c | 1 +
+ nhrp/sysdep_netlink.c | 4 ++--
+ 3 files changed, 4 insertions(+), 3 deletions(-)
+
+diff --git a/nhrp/nhrp_common.h b/nhrp/nhrp_common.h
+index 9422382..395713e 100644
+--- a/nhrp/nhrp_common.h
++++ b/nhrp/nhrp_common.h
+@@ -60,7 +60,7 @@ int kernel_route(struct nhrp_interface *out_iface,
+ struct nhrp_address *dest,
+ struct nhrp_address *default_source,
+ struct nhrp_address *next_hop,
+- u_int16_t *mtu);
++ uint16_t *mtu);
+ int kernel_send(uint8_t *packet, size_t bytes, struct nhrp_interface *out,
+ struct nhrp_address *to);
+ int kernel_inject_neighbor(struct nhrp_address *neighbor,
+diff --git a/nhrp/opennhrp.c b/nhrp/opennhrp.c
+index 4ed27a8..03e9682 100644
+--- a/nhrp/opennhrp.c
++++ b/nhrp/opennhrp.c
+@@ -8,6 +8,7 @@
+
+ #include <ctype.h>
+ #include <stdio.h>
++#include <fcntl.h>
+ #include <errno.h>
+ #include <malloc.h>
+ #include <stddef.h>
+diff --git a/nhrp/sysdep_netlink.c b/nhrp/sysdep_netlink.c
+index be529d8..1217ae4 100644
+--- a/nhrp/sysdep_netlink.c
++++ b/nhrp/sysdep_netlink.c
+@@ -64,7 +64,7 @@ static struct netlink_fd netlink_fds[ARRAY_SIZE(netlink_groups)];
+
+ static struct ev_io packet_io;
+
+-static u_int16_t translate_mtu(u_int16_t mtu)
++static uint16_t translate_mtu(uint16_t mtu)
+ {
+ /* if mtu is ethernet standard, do not advertise it
+ * pmtu should be working */
+@@ -1001,7 +1001,7 @@ int kernel_route(struct nhrp_interface *out_iface,
+ struct nhrp_address *dest,
+ struct nhrp_address *default_source,
+ struct nhrp_address *next_hop,
+- u_int16_t *mtu)
++ uint16_t *mtu)
+ {
+ struct {
+ struct nlmsghdr n;
+--
+2.4.6
+