Mercurial > hg > dhcpcd
changeset 5131:d99a53af6486 draft
RTA_PREF was added in kernel-4.1
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Thu, 09 Apr 2020 16:27:18 +0000 |
| parents | d34c808ae81e |
| children | 2b98d2fb5702 |
| files | src/route.h |
| diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/route.h Thu Apr 09 16:19:07 2020 +0000 +++ b/src/route.h Thu Apr 09 16:27:18 2020 +0000 @@ -61,7 +61,10 @@ #endif #ifdef __linux__ -# define HAVE_ROUTE_PREF +# include <linux/version.h> /* 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)
