Index: mythvideo/mtd/logging.cpp
===================================================================
--- mythvideo/mtd/logging.cpp	(revision 21647)
+++ mythvideo/mtd/logging.cpp	(working copy)
@@ -13,7 +13,9 @@
 #include <cstdlib>
 #include <QDateTime>
 
-#include <mythtv/mythcontext.h>
+#ifdef USING_MINGW
+#include <winsock.h> // for gethostname
+#endif
 
 #define LOC      QString("MTDLogger: ")
 #define LOC_WARN QString("MTDLogger, Warning: ")
