2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 22:35:33 +00:00

net: add a #define for increased compatiblity with old distributions

Debian 9 doesn't have IFLA_NEW_IFINDEX defined

Signed-off-by: Nicolas Viennot <Nicolas.Viennot@twosigma.com>
This commit is contained in:
Nicolas Viennot
2021-04-23 23:37:22 +00:00
committed by Andrei Vagin
parent 29c34386b0
commit 24bdfa72df

View File

@@ -50,6 +50,10 @@
#include "images/netdev.pb-c.h"
#include "images/inventory.pb-c.h"
#ifndef IFLA_NEW_IFINDEX
#define IFLA_NEW_IFINDEX 49
#endif
#ifndef IFLA_LINK_NETNSID
#define IFLA_LINK_NETNSID 37
#undef IFLA_MAX