--- src/log.c.orig	2005-10-24 11:40:32.000000000 +1000
+++ src/log.c	2013-09-23 22:35:53.000000000 +1000
@@ -39,6 +39,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBI
 #include <stdarg.h>
 #include <unistd.h>
 #include <limits.h>
+#include <stdio.h>
 #include <stdlib.h>
 #include <sys/time.h>
 #include <time.h>
