]> git.ozlabs.org Git - ppp.git/commit
pppd/sys-linux: Fix compile with older Linux kernel headers (#452)
authorJaco Kroon <jaco@uls.co.za>
Tue, 31 Oct 2023 09:47:21 +0000 (11:47 +0200)
committerGitHub <noreply@github.com>
Tue, 31 Oct 2023 09:47:21 +0000 (20:47 +1100)
commit7a3f478a4b7128d4f70ea64d99fedec766b1c009
treeadf949bec75db141a00efadab643f029ca980c1c
parenta2ecd2a8241e1063073e79d949ef6d1e553513b1
pppd/sys-linux: Fix compile with older Linux kernel headers (#452)

When compiling pppd against kernel headers which don't provide
the definitions for the NETLINK mechanisms, leave out the code
which uses NETLINK, so as to avoid getting compile errors.

Upstream commit in Linux refers.

commit 10c9ead9f3c6bb24bddc9a96681f7d58e6623966
Author: Roopa Prabhu <roopa@cumulusnetworks.com>
Date:   Wed Apr 20 08:43:43 2016 -0700
rtnetlink: add new RTM_GETSTATS message to dump link stats

This commit adds the #defines and structs used, so simply not compiling
this code if the required #defines isn't there should solve the problem.

Closes: #450
Signed-off-by: Jaco Kroon <jaco@uls.co.za>
pppd/sys-linux.c