mirror of
				https://github.com/Telecominfraproject/wlan-cloud-lib-poco.git
				synced 2025-11-04 04:28:10 +00:00 
			
		
		
		
	iOS fixes
This commit is contained in:
		@@ -1140,7 +1140,9 @@ NetworkInterface::NetworkInterfaceList NetworkInterface::list()
 | 
			
		||||
#include <ifaddrs.h>
 | 
			
		||||
#include <net/if.h>
 | 
			
		||||
#include <net/if_dl.h>
 | 
			
		||||
#ifndef POCO_NO_NET_IFTYPES
 | 
			
		||||
#include <net/if_types.h>
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
namespace Poco {
 | 
			
		||||
@@ -1153,6 +1155,7 @@ NetworkInterface::Type fromNative(u_char nativeType)
 | 
			
		||||
{
 | 
			
		||||
	switch (nativeType) 
 | 
			
		||||
	{
 | 
			
		||||
#ifndef POCO_NO_NET_IFTYPES
 | 
			
		||||
		case IFT_ETHER:		return NetworkInterface::NI_TYPE_ETHERNET_CSMACD;
 | 
			
		||||
		case IFT_ISO88025:	return NetworkInterface::NI_TYPE_ISO88025_TOKENRING;
 | 
			
		||||
		case IFT_FRELAY:	return NetworkInterface::NI_TYPE_FRAMERELAY;
 | 
			
		||||
@@ -1161,8 +1164,10 @@ NetworkInterface::Type fromNative(u_char nativeType)
 | 
			
		||||
		case IFT_ATM:		return NetworkInterface::NI_TYPE_ATM;
 | 
			
		||||
#if (POCO_OS != POCO_OS_SOLARIS)		
 | 
			
		||||
		case IFT_IEEE1394:	return NetworkInterface::NI_TYPE_IEEE1394;
 | 
			
		||||
#endif
 | 
			
		||||
#endif
 | 
			
		||||
		default:			return NetworkInterface::NI_TYPE_OTHER;
 | 
			
		||||
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user