openvpn3: fix build on latest Linux (#439017)

This commit is contained in:
Sandro
2025-09-01 15:30:59 +02:00
committed by GitHub
2 changed files with 32 additions and 0 deletions
+5
View File
@@ -40,6 +40,11 @@ stdenv.mkDerivation rec {
fetchSubmodules = true;
};
patches = [
# Should be fixed in v26: https://codeberg.org/OpenVPN/openvpn3-linux/issues/70
./v25-latest-linux-fix.patch
];
postPatch = ''
echo '#define OPENVPN_VERSION "3.git:unknown:unknown"
#define PACKAGE_GUIVERSION "v${builtins.replaceStrings [ "_" ] [ ":" ] version}"
@@ -0,0 +1,27 @@
diff --git a/openvpn3-core/openvpn/dco/ovpn_dco_linux.h b/openvpn3-core/openvpn/dco/ovpn_dco_linux.h
index 238f71f7a..5b7fe8d8c 100644
--- a/openvpn3-core/openvpn/dco/ovpn_dco_linux.h
+++ b/openvpn3-core/openvpn/dco/ovpn_dco_linux.h
@@ -239,22 +239,6 @@ enum ovpn_netlink_packet_attrs {
OVPN_PACKET_ATTR_MAX = __OVPN_PACKET_ATTR_AFTER_LAST - 1,
};
-enum ovpn_ifla_attrs {
- IFLA_OVPN_UNSPEC = 0,
- IFLA_OVPN_MODE,
-
- __IFLA_OVPN_AFTER_LAST,
- IFLA_OVPN_MAX = __IFLA_OVPN_AFTER_LAST - 1,
-};
-
-enum ovpn_mode {
- __OVPN_MODE_FIRST = 0,
- OVPN_MODE_P2P = __OVPN_MODE_FIRST,
- OVPN_MODE_MP,
-
- __OVPN_MODE_AFTER_LAST,
-};
-
/// \endcond
#endif /* _UAPI_LINUX_OVPN_DCO_H_ */