diff --git a/ChangeLog b/ChangeLog
index 5830d2d191855994a897a64479926f9f3e465fc8..92d5ab783c7f16c50b1e2026c8b04f800707ef1e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -19,7 +19,7 @@ CVS code -
 	  strlenpt(), check_linenumbers(), dump_buffer(), and
 	  dump_buffer_reverse() from winio.c to utils.c, as they're
 	  really utility functions. (DLR)
-	- Add missing stdio.h #include to winio.c. (DLR)
+	- Add missing stdio.h #include to text.c and winio.c. (DLR)
 	- Move functions specific to the statusbar prompt to their own
 	  source file, adjust related variables accordingly, and rename
 	  variable resetstatuspos reset_statusbar_x.  New file prompt.c;
diff --git a/src/text.c b/src/text.c
index dc3d59b24010738b0253ae14d90421b079860fdb..5ed4cc9e70679c6fc62af3d185d28d70962c5863 100644
--- a/src/text.c
+++ b/src/text.c
@@ -24,6 +24,7 @@
 #include <config.h>
 #endif
 
+#include <stdio.h>
 #include <signal.h>
 #include <unistd.h>
 #include <string.h>