Index: mythvideo/mtd/logging.cpp
===================================================================
--- mythvideo/mtd/logging.cpp	(revision 21647)
+++ mythvideo/mtd/logging.cpp	(working copy)
@@ -13,6 +13,10 @@
 #include <cstdlib>
 #include <QDateTime>
 
+#ifdef USING_MINGW
+#include <winsock2.h>
+#endif
+
 #include <mythtv/mythcontext.h>
 
 #define LOC      QString("MTDLogger: ")
