From eff4a29489caa8758ec2fe1e1afa43f53e11e5d8 Mon Sep 17 00:00:00 2001 From: Andrew Knight Date: Tue, 21 Jul 2015 23:10:31 +0300 Subject: [PATCH] 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 --- mkspecs/common/winrt_winphone/qplatformdefs.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mkspecs/common/winrt_winphone/qplatformdefs.h b/mkspecs/common/winrt_winphone/qplatformdefs.h index 14f6c582536..6abac1e94df 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