From: Roy Marples Date: Thu, 9 Apr 2020 16:27:18 +0000 (+0000) Subject: RTA_PREF was added in kernel-4.1 X-Git-Tag: v9.0.1~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9636652017a4218cda07d6a5da8be315032413ee;p=thirdparty%2Fdhcpcd.git RTA_PREF was added in kernel-4.1 --- diff --git a/src/route.h b/src/route.h index a061497c..d94fc25d 100644 --- a/src/route.h +++ b/src/route.h @@ -61,7 +61,10 @@ #endif #ifdef __linux__ -# define HAVE_ROUTE_PREF +# include /* RTA_PREF is only an enum.... */ +# if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 1, 0) +# define HAVE_ROUTE_PREF +# endif #endif #if defined(__OpenBSD__) || defined (__sun)