]> git.ozlabs.org Git - ppp.git/commit
pppd: Fix compilation with older glibc or kernel headers (#248)
authorpali <7141871+pali@users.noreply.github.com>
Mon, 15 Feb 2021 06:54:01 +0000 (07:54 +0100)
committerGitHub <noreply@github.com>
Mon, 15 Feb 2021 06:54:01 +0000 (17:54 +1100)
commit98ec18f098e5ef68e3a8cc6954fcaf5a7fb8b7be
tree03d39ef5f54d6db58bb9eeff5c33a8556010c2e0
parent5191399f5266bb595f03f5c4fee13153092e2baf
pppd: Fix compilation with older glibc or kernel headers (#248)

glibc versions prior to 2.24 do not define SOL_NETLINK and linux kernel
versions prior to 4.3 do not define NETLINK_CAP_ACK. So add fallback
definitions for these macros into pppd/sys-linux.c file.

Also extend description why we call SOL_NETLINK/NETLINK_CAP_ACK option.

Signed-off-by: Pali Rohár <pali@kernel.org>
pppd/sys-linux.c