From 4275b6930b9a37630bd09bdcdb5e21547aa77683 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Tue, 29 Oct 2024 18:16:54 -0700 Subject: [PATCH] pptp: fix compilation with GCC14 Needed forward declaration for missing function. Removed some no longer needed musl fixes. Signed-off-by: Rosen Penev --- net/pptpd/Makefile | 2 +- net/pptpd/patches/100-musl-compat.patch | 32 +++++++------------------ 2 files changed, 9 insertions(+), 25 deletions(-) diff --git a/net/pptpd/Makefile b/net/pptpd/Makefile index ad58b45321..65c4b9ce42 100644 --- a/net/pptpd/Makefile +++ b/net/pptpd/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=pptpd PKG_VERSION:=1.5.0 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=@SF/poptop diff --git a/net/pptpd/patches/100-musl-compat.patch b/net/pptpd/patches/100-musl-compat.patch index 4a17359df8..5ab2bd12ad 100644 --- a/net/pptpd/patches/100-musl-compat.patch +++ b/net/pptpd/patches/100-musl-compat.patch @@ -9,29 +9,13 @@ { if (errno == ENETDOWN) { syslog(LOG_NOTICE, "ignored ENETDOWN from sendto(), a network interface was going down?"); ---- a/compat.c -+++ b/compat.c -@@ -13,9 +13,9 @@ +--- a/plugins/pptpd-logwtmp.c ++++ b/plugins/pptpd-logwtmp.c +@@ -17,6 +17,7 @@ + #include + #include - #include ++extern void logwtmp(const char *line, const char *name, const char *host); + char pppd_version[] = PPPD_VERSION; --#ifndef HAVE_STRLCPY - #include - -+#ifndef HAVE_STRLCPY - void strlcpy(char *dst, const char *src, size_t size) - { - strncpy(dst, src, size - 1); ---- /dev/null -+++ b/net/ppp_defs.h -@@ -0,0 +1,10 @@ -+#ifndef _NET_PPP_DEFS_H -+#define _NET_PPP_DEFS_H 1 -+ -+#define __need_time_t -+#include -+ -+#include -+#include -+ -+#endif /* net/ppp_defs.h */ + static char pptpd_original_ip[PATH_MAX+1]; -- 2.30.2