Browse Source

Merge pull request #1481 from jow-/opennhrp-musl-compat

opennhrp: fix musl compatibility
lilik-openwrt-22.03
Steven Barth 9 years ago
parent
commit
75dca1b19e
2 changed files with 22 additions and 2 deletions
  1. +2
    -2
      net/opennhrp/Makefile
  2. +20
    -0
      net/opennhrp/patches/100-musl-compat.patch

+ 2
- 2
net/opennhrp/Makefile View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2009-2011 OpenWrt.org
# Copyright (C) 2009-2015 OpenWrt.org
# Copyright (C) 2009 Jakob Pfeiffer
# Copyright (C) 2014 Artem Makhutov
#
@ -11,7 +11,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=opennhrp
PKG_VERSION:=0.14.1
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_MAINTAINER:=Artem Makhutov <artem@makhutov.org>
PKG_LICENSE:=MIT License


+ 20
- 0
net/opennhrp/patches/100-musl-compat.patch View File

@ -0,0 +1,20 @@
--- 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;

Loading…
Cancel
Save