summaryrefslogtreecommitdiffstats
path: root/src/network
diff options
context:
space:
mode:
authorTobias Koenig <tobias.koenig@kdab.com>2014-12-16 11:10:26 +0000
committerTobias Koenig <tobias.koenig@kdab.com>2015-01-14 05:36:56 +0100
commitab1b1afb83667210e60fa402d68131c250b42009 (patch)
tree78e0581c2dc8f92f3d48fea4396938c494b67b2a /src/network
parentce84a1bde3a1af536ebb95d2f6dd947fee248279 (diff)
Haiku: Make network module compile on Haiku
Add the missing definition for IFF_RUNNING like documented on http://ports.haiku-files.org/wiki/CommonProblems Change-Id: Iea3fa224dc8e7e1e36674026efbb28289d2efa2a Reviewed-by: Augustin Cavalier <waddlesplash@gmail.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Diffstat (limited to 'src/network')
-rw-r--r--src/network/kernel/qnetworkinterface_unix.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/network/kernel/qnetworkinterface_unix.cpp b/src/network/kernel/qnetworkinterface_unix.cpp
index 782bb76f20..f1a6d1d8ff 100644
--- a/src/network/kernel/qnetworkinterface_unix.cpp
+++ b/src/network/kernel/qnetworkinterface_unix.cpp
@@ -58,6 +58,11 @@
# define QT_NO_IPV6IFNAME
#endif
+#ifdef Q_OS_HAIKU
+# include <sys/sockio.h>
+# define IFF_RUNNING 0x0001
+#endif
+
#ifndef QT_NO_GETIFADDRS
# include <ifaddrs.h>
#endif