diff options
| author | Timur Pocheptsov <timur.pocheptsov@qt.io> | 2017-11-13 13:06:35 +0100 |
|---|---|---|
| committer | Liang Qi <liang.qi@qt.io> | 2017-11-16 18:52:40 +0000 |
| commit | b9750081316dc99d1bc121c4432b1c5f33fbd3cd (patch) | |
| tree | 766d01e2aa51f5c746d9ce86e717785ea11d309d /src/network/kernel/qnetworkinterface_unix.cpp | |
| parent | ae93928a12fc7fa7b4818d39c7a1421282f7c5a3 (diff) | |
QNetworkInterface - fix iOS/tvOS/watchOS builds
netinet/in_var.h, netinet6/in6_var.h, and net/if_media.h are missing
in iPhoneOS.sdk(s). We only use several macros and data-structs from
these headers, so to work-around the broken build we provide the
missing definitionis.
Task-number: QTBUG-64447
Change-Id: I1b8169c12b4f33959f949bbf29e80f639ab31ad3
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/network/kernel/qnetworkinterface_unix.cpp')
| -rw-r--r-- | src/network/kernel/qnetworkinterface_unix.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/network/kernel/qnetworkinterface_unix.cpp b/src/network/kernel/qnetworkinterface_unix.cpp index 2f3c940d252..078b8dd1434 100644 --- a/src/network/kernel/qnetworkinterface_unix.cpp +++ b/src/network/kernel/qnetworkinterface_unix.cpp @@ -405,9 +405,13 @@ static void getAddressExtraInfo(QNetworkAddressEntry *entry, struct sockaddr *sa # elif defined(Q_OS_BSD4) QT_BEGIN_INCLUDE_NAMESPACE # include <net/if_dl.h> -# include <net/if_media.h> # include <net/if_types.h> +#if defined(QT_PLATFORM_UIKIT) +# include "qnetworkinterface_uikit_p.h" +#else +# include <net/if_media.h> # include <netinet/in_var.h> +#endif // QT_PLATFORM_UIKIT QT_END_INCLUDE_NAMESPACE static int openSocket(int &socket) |
