diff --git a/src/sbbs3/mxlookup.c b/src/sbbs3/mxlookup.c
index 998d7da95f4e595d0f240de79048f72ecf1a0f78..d83e3a55cd9869e8fd04b4876011ea9dd2a08680 100644
--- a/src/sbbs3/mxlookup.c
+++ b/src/sbbs3/mxlookup.c
@@ -35,7 +35,17 @@
  * Note: If this box doesn't appear square, then you need to fix your tabs.	*
  ****************************************************************************/
 
+/* Platform-specific */
+#ifdef _WIN32
+	#include <windows.h>	/* avoid DWORD conflict */
+#endif
+
+/* ANSI */
 #include <stdio.h>
+#include <string.h>		/* strchr */
+
+/* Synchronet-specific */
+#include "gen_defs.h"
 #include "sbbsinet.h"
 
 #ifdef _WIN32