diff --git a/src/sbbs3/textgen.c b/src/sbbs3/textgen.c
index ce59408766be4dddb525a9ed1b05b72e1d76b373..299c9817eab77148ccd24f7b0aa68b9fd56623dc 100644
--- a/src/sbbs3/textgen.c
+++ b/src/sbbs3/textgen.c
@@ -2,9 +2,11 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include "sbbs.h"
+#include "genwrap.h"	// truncsp
 #include "dirwrap.h"	// MAX_PATH
 #include "gen_defs.h"
+#include "str_util.h"
+#include "getctrl.h"
 
 /****************************************************************************/
 /* Reads special TEXT.DAT printf style text lines, splicing multiple lines, */