Work around FreeBSD 12.0 breaking source compatibility with IFM_FDDI

The macro disappeared.
qnetworkinterface_unix.cpp:467:14: error: use of undeclared identifier 'IFM_FDDI'; did you mean 'IFT_FDDI'?

Fixes: QTBUG-72775
Change-Id: I548dbfddb69b4fd6a0a3fffd1574e1ad4e670e5b
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
This commit is contained in:
Thiago Macieira 2018-12-29 16:38:26 -02:00 committed by André Klitzing
parent 0c95c11e65
commit 804eea08b4

View File

@ -464,8 +464,10 @@ static QNetworkInterface::InterfaceType probeIfType(int socket, int iftype, stru
case IFM_ETHER:
return QNetworkInterface::Ethernet;
#ifdef IFM_FDDI
case IFM_FDDI:
return QNetworkInterface::Fddi;
#endif
case IFM_IEEE80211:
return QNetworkInterface::Ieee80211;