--- otptool.h.orig	2010-08-16 08:38:07.000000000 +1000
+++ otptool.h	2011-11-17 18:44:47.000000000 +1100
@@ -24,6 +24,7 @@
 #include <errno.h>
 #include <stdio.h>
 #include <string.h>
+#include <sys/types.h>
 #include <time.h>
 #include <unistd.h>