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/
This commit is contained in:
Daniel P. Berrange 2011-11-23 12:29:37 +00:00
parent 3fb94eeeb2
commit aad764e107

View File

@ -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] =
{