]> git.ipfire.org Git - thirdparty/openvpn.git/commit
dco linux: avoid redefining ovpn enums
authorRalf Lici <ralf@mandelbit.com>
Mon, 23 Jun 2025 14:07:43 +0000 (16:07 +0200)
committerGert Doering <gert@greenie.muc.de>
Mon, 23 Jun 2025 14:31:47 +0000 (16:31 +0200)
commit1d3c2b67a73a0aa011c13e62f876d24e49d41df0
tree3e08a3523624cb11d6fdf10a5f20b026024e9f89
parentf93fc813ffa53d170f79222e76188a18f6819a54
dco linux: avoid redefining ovpn enums

Starting with Linux kernel version 6.16, a couple of ovpn-related enum
definitions were introduced in the `include/uapi/linux/if_link.h`
header. Redefining them in openvpn when they are already present in the
system headers can lead to conflicts or build issues.

This commit ensures that enum redefinitions are avoided by conditionally
using the existing definitions from the system header when available.

Change-Id: I4fa2d578f9c0a5a8aa24ca1d396102ef2ed9a425
Signed-off-by: Ralf Lici <ralf@mandelbit.com>
Message-Id: <20250623140748.13960-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg31961.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/dco_linux.h