From aad764e1075a20881d2210ebb800362fd89a8b50 Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Wed, 23 Nov 2011 12:29:37 +0000 Subject: [PATCH] Fix disabling of virtual port profile code on old hosts The WITH_VIRTUALPORT macro is defined to 0 when disabled, not left undefined. So #if must be used instead of #ifdef * src/util/virnetdevvportprofile.c: s/#ifdef/#if/ --- src/util/virnetdevvportprofile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/virnetdevvportprofile.c b/src/util/virnetdevvportprofile.c index 8f7e5b9f94..46f2a248dd 100644 --- a/src/util/virnetdevvportprofile.c +++ b/src/util/virnetdevvportprofile.c @@ -120,7 +120,7 @@ virNetDevVPortProfileEqual(virNetDevVPortProfilePtr a, virNetDevVPortProfilePtr } -#ifdef WITH_VIRTUALPORT +#if WITH_VIRTUALPORT static struct nla_policy ifla_port_policy[IFLA_PORT_MAX + 1] = {