network: Allow compiling against NM 0.9.6

NM 0.9.7 has still not been released, even as a tarball, so allow
compiling against 0.9.6 (without certain bits of new functionality).

https://bugzilla.gnome.org/show_bug.cgi?id=691721
This commit is contained in:
Dan Winship 2013-01-14 10:24:56 -05:00 committed by Matthias Clasen
parent 3ac77e5d47
commit ec704ab62f
7 changed files with 81 additions and 3 deletions

View file

@ -582,7 +582,9 @@ typedef struct {
static const NetConnectionType connection_types[] = {
{ N_("VPN"), nm_setting_vpn_get_type },
{ N_("Bond"), nm_setting_bond_get_type },
#ifdef HAVE_NM_UNSTABLE
{ N_("Bridge"), nm_setting_bridge_get_type },
#endif
{ N_("VLAN"), nm_setting_vlan_get_type }
};
static const NetConnectionType *vpn_connection_type = &connection_types[0];