--- anyterm-1.1.29/libpbe/src/SmtpClient.cc
+++ anyterm-1.1.29/libpbe/src/SmtpClient.cc
@@ -20,6 +20,7 @@
 #include "ip.hh"
 #include "select.hh"
 
+#include <stdio.h>
 #include <syslog.h>
 #include <unistd.h>
 
