$Id$
--- gsm-1.0-pl10.orig/inc/toast.h	Tue Jul  2 16:32:29 1996
+++ gsm-1.0-pl10/inc/toast.h	Sat Jan 20 13:06:50 2007
@@ -16,11 +16,12 @@
 
 #include <stdio.h>
 #include <ctype.h>
+#include <pthread.h>
 #include <signal.h>
 
 #include <errno.h>
-#ifndef	HAS_ERRNO_DECL
-	 extern int	errno;
+#ifndef errno
+ extern int	errno;
 #endif
 
 #ifdef	HAS_LIMITS_H
@@ -35,6 +36,10 @@
 # ifdef	HAS_UTIME_H
 #  include <utime.h>
 # endif
+#endif
+
+#ifdef  HAS_STDIO_H
+# include <stdio.h>
 #endif
 
 #include "gsm.h"
