packages/net/opennhrp/patches/100-musl-compat.patch
Jo-Philipp Wich a187bc8d57 opennhrp: fix musl compatibility
- Add `fcntl.h` to `nrhp/opennhrp.c` for `open()`, `O_WRONLY` etc.
 - Add missing `sys/types.h` include to `nrhp/nrhp_common.h` to provide
   required `u_int*_t` types under musl

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-06-26 15:48:25 +02:00

20 lines
415 B
Diff

--- a/nhrp/opennhrp.c
+++ b/nhrp/opennhrp.c
@@ -9,6 +9,7 @@
#include <ctype.h>
#include <stdio.h>
#include <errno.h>
+#include <fcntl.h>
#include <malloc.h>
#include <stddef.h>
#include <string.h>
--- a/nhrp/nhrp_common.h
+++ b/nhrp/nhrp_common.h
@@ -12,6 +12,7 @@
#include <stdint.h>
#include <stdlib.h>
#include <sys/time.h>
+#include <sys/types.h>
#include <linux/if_ether.h>
struct nhrp_interface;