diff --git a/src/plugins/debugger/registerpostmortemaction.cpp b/src/plugins/debugger/registerpostmortemaction.cpp
index 611c885752174ace794a4456e4cd86794bd16d97..4398a1d977284a69f020dbbbde145e19fc255bec 100644
--- a/src/plugins/debugger/registerpostmortemaction.cpp
+++ b/src/plugins/debugger/registerpostmortemaction.cpp
@@ -27,6 +27,10 @@
 **
 **************************************************************************/
 
+#ifndef _WIN32_WINNT
+#define _WIN32_WINNT 0x0400
+#endif
+
 #include "registerpostmortemaction.h"
 
 #include "registryaccess.h"