From bb3258c66a476d138a08f9b7b01bebd32ee6233c Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sat, 28 Nov 2026 15:31:21 +0100 Subject: [PATCH] softethervpn: use GNU C17 for the stable 4.x source GCC 15 defaults to GNU C23, where bool is a reserved keyword. SoftEther VPN Stable 4.38 defines bool as an unsigned int, and uses its size in configuration storage and socket option calls. Set GNU C17 for the target and host builds to preserve the 4.x type and API. The development branch's switch to stdbool.h changes the type width and is a larger compatibility change for this stable release. Assisted-by: LLM Signed-off-by: Hauke Mehrtens --- net/softethervpn/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/net/softethervpn/Makefile b/net/softethervpn/Makefile index 4e5ece4188..79263961fc 100644 --- a/net/softethervpn/Makefile +++ b/net/softethervpn/Makefile @@ -12,7 +12,7 @@ PKG_NAME:=softethervpn PKG_REALVERSION:=4.38-9760 PKG_VERSION:=$(word 1,$(subst -, ,$(PKG_REALVERSION))) PKG_VERREL:=rtm -PKG_RELEASE:=4 +PKG_RELEASE:=5 PKG_SOURCE:=softether-src-v$(PKG_REALVERSION)-$(PKG_VERREL).tar.gz PKG_SOURCE_URL:=https://github.com/SoftEtherVPN/SoftEtherVPN_Stable/releases/download/v$(PKG_REALVERSION)-$(PKG_VERREL) @@ -44,7 +44,7 @@ HOST_MAKE_FLAGS += \ define Host/Configure endef -HOST_CFLAGS += $(if $(CONFIG_HOST_OS_MACOS),-Wno-implicit-function-declaration,) +HOST_CFLAGS += -std=gnu17 $(if $(CONFIG_HOST_OS_MACOS),-Wno-implicit-function-declaration,) define Host/Compile # Build hamcorebuilder using host compiler and let it generate @@ -62,6 +62,7 @@ endef # Tune CFLAGS for target TARGET_CFLAGS += \ + -std=gnu17 \ $(if $(CONFIG_OPENSSL_WITH_SSL3),,-DSSL_OP_NO_SSLv3) \ $(if $(filter mips mipsel,$(ARCH)),-minterlink-mips16)