From 468863128f1d4d47effa37bd69de69ae5aff29b7 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Wed, 30 Mar 2022 20:25:12 -0700 Subject: [PATCH] ptunnel-ng: fix compilation with kernel 5.15 Some header change requires to include musl's headers first. Signed-off-by: Rosen Penev --- net/ptunnel-ng/Makefile | 2 +- net/ptunnel-ng/patches/010-musl.patch | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 net/ptunnel-ng/patches/010-musl.patch diff --git a/net/ptunnel-ng/Makefile b/net/ptunnel-ng/Makefile index 1513fb7a51..95b53d1aae 100644 --- a/net/ptunnel-ng/Makefile +++ b/net/ptunnel-ng/Makefile @@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=ptunnel-ng PKG_VERSION:=1.42 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/lnslbrty/ptunnel-ng/tar.gz/v$(PKG_VERSION)? diff --git a/net/ptunnel-ng/patches/010-musl.patch b/net/ptunnel-ng/patches/010-musl.patch new file mode 100644 index 0000000000..d3a8c5aacc --- /dev/null +++ b/net/ptunnel-ng/patches/010-musl.patch @@ -0,0 +1,22 @@ +--- a/src/ptunnel.h ++++ b/src/ptunnel.h +@@ -45,9 +45,6 @@ + #define PING_TUNNEL_H 1 + + #ifndef WIN32 +-#ifdef HAVE_ICMPFILTER +-#include +-#endif + #ifdef HAVE_SYS_UNISTD_H + #include + #endif +@@ -56,6 +53,9 @@ + #include + #include + #include ++#ifdef HAVE_ICMPFILTER ++#include ++#endif + #include + #include + #include -- 2.30.2