pptp: fix compilation with GCC14
authorRosen Penev <rosenp@gmail.com>
Wed, 30 Oct 2024 01:16:54 +0000 (18:16 -0700)
committerRosen Penev <rosenp@gmail.com>
Wed, 30 Oct 2024 12:10:10 +0000 (05:10 -0700)
Needed forward declaration for missing function.

Removed some no longer needed musl fixes.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
net/pptpd/Makefile
net/pptpd/patches/100-musl-compat.patch

index ad58b45321517288677a7f6832b8a256486377fa..65c4b9ce42eb9e08e1d3ccdc689ae7a28ee56918 100644 (file)
@@ -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
index 4a17359df851129acb40446cfd253d673c8562fd..5ab2bd12adbaea9ee160d8863a99b3042a5fc981 100644 (file)
@@ -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 <pppd/pppd.h>
+ #include <pppd/options.h>
  
- #include <string.h>
++extern void logwtmp(const char *line, const char *name, const char *host);
+ char pppd_version[] = PPPD_VERSION;
  
--#ifndef HAVE_STRLCPY
- #include <stdio.h>
-+#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 <time.h>
-+
-+#include <asm/types.h>
-+#include <linux/ppp_defs.h>
-+
-+#endif /* net/ppp_defs.h */
+ static char pptpd_original_ip[PATH_MAX+1];