diff -ru bsdiff-4.3/bspatch.c bsdiff-4.3+iPhone/bspatch.c
--- bsdiff-4.3/bspatch.c	2005-08-16 22:14:00.000000000 +0000
+++ bsdiff-4.3+iPhone/bspatch.c	2010-04-01 23:54:50.000000000 +0000
@@ -35,6 +35,7 @@
 #include <err.h>
 #include <unistd.h>
 #include <fcntl.h>
+#include <sys/types.h>
 
 static off_t offtin(u_char *buf)
 {
