summaryrefslogtreecommitdiffstats
path: root/mkspecs/common/winrt_winphone/qplatformdefs.h
diff options
context:
space:
mode:
authorAndrew Knight <andrew.knight@intopalo.com>2015-07-21 23:10:31 +0300
committerAndrew Knight <andrew.knight@intopalo.com>2015-07-22 06:44:00 +0000
commiteff4a29489caa8758ec2fe1e1afa43f53e11e5d8 (patch)
treef2153818ad647c9e065aceb3f46a6be17bef765b /mkspecs/common/winrt_winphone/qplatformdefs.h
parentfa542b2ab66c39099c73ebf25eca9cca2070a8d8 (diff)
winrt: Fix build when INADDR_XXX macros are not defined
These macros are not defined unless a desktop or standalone SDK is installed. Change-Id: I4c600ddca5944cc5fde310e4fbe0866a7250d36b Reviewed-by: Oliver Wolff <oliver.wolff@theqtcompany.com>
Diffstat (limited to 'mkspecs/common/winrt_winphone/qplatformdefs.h')
-rw-r--r--mkspecs/common/winrt_winphone/qplatformdefs.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/mkspecs/common/winrt_winphone/qplatformdefs.h b/mkspecs/common/winrt_winphone/qplatformdefs.h
index 14f6c58253..6abac1e94d 100644
--- a/mkspecs/common/winrt_winphone/qplatformdefs.h
+++ b/mkspecs/common/winrt_winphone/qplatformdefs.h
@@ -130,4 +130,14 @@
typedef int mode_t;
+#ifndef INADDR_ANY
+# define INADDR_ANY (u_long)0x00000000
+#endif
+#ifndef INADDR_LOOPBACK
+# define INADDR_LOOPBACK 0x7f000001
+#endif
+#ifndef INADDR_BROADCAST
+# define INADDR_BROADCAST (u_long)0xffffffff
+#endif
+
#endif // QPLATFORMDEFS_H