Skip to content

Commit 4d3e02d

Browse files
committed
iOS fixes
1 parent efa3cd1 commit 4d3e02d

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Net/src/NetworkInterface.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1140,7 +1140,9 @@ NetworkInterface::NetworkInterfaceList NetworkInterface::list()
11401140
#include <ifaddrs.h>
11411141
#include <net/if.h>
11421142
#include <net/if_dl.h>
1143+
#ifndef POCO_NO_NET_IFTYPES
11431144
#include <net/if_types.h>
1145+
#endif
11441146

11451147

11461148
namespace Poco {
@@ -1153,6 +1155,7 @@ NetworkInterface::Type fromNative(u_char nativeType)
11531155
{
11541156
switch (nativeType)
11551157
{
1158+
#ifndef POCO_NO_NET_IFTYPES
11561159
case IFT_ETHER: return NetworkInterface::NI_TYPE_ETHERNET_CSMACD;
11571160
case IFT_ISO88025: return NetworkInterface::NI_TYPE_ISO88025_TOKENRING;
11581161
case IFT_FRELAY: return NetworkInterface::NI_TYPE_FRAMERELAY;
@@ -1161,8 +1164,10 @@ NetworkInterface::Type fromNative(u_char nativeType)
11611164
case IFT_ATM: return NetworkInterface::NI_TYPE_ATM;
11621165
#if (POCO_OS != POCO_OS_SOLARIS)
11631166
case IFT_IEEE1394: return NetworkInterface::NI_TYPE_IEEE1394;
1167+
#endif
11641168
#endif
11651169
default: return NetworkInterface::NI_TYPE_OTHER;
1170+
11661171
}
11671172
}
11681173

build/config/iPhone

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# $Id: //poco/1.4/build/config/iPhone#4 $
2+
# $Id: //poco/1.4/build/config/iPhone#3 $
33
#
44
# iPhone
55
#
@@ -89,7 +89,7 @@ RELEASEOPT_LINK =
8989
#
9090
# System Specific Flags
9191
#
92-
SYSFLAGS = -DPOCO_HAVE_IPv6 -DPOCO_NO_FPENVIRONMENT -DPOCO_NO_STAT64 -DPOCO_NO_SHAREDLIBS
92+
SYSFLAGS = -DPOCO_HAVE_IPv6 -DPOCO_NO_FPENVIRONMENT -DPOCO_NO_STAT64 -DPOCO_NO_SHAREDLIBS -DPOCO_NO_NET_IFTYPES
9393

9494
#
9595
# System Specific Libraries

0 commit comments

Comments
 (0)