--- sane-backends-1.0.22.orig/backend/hp3900_rts8822.c 2010-12-02 00:49:58.000000000 +0100 +++ sane-backends-1.0.22/backend/hp3900_rts8822.c 2014-03-18 08:38:21.000000000 +0100 @@ -64,6 +64,7 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> /* bzero() */ +#include <sys/types.h> #include <time.h> /* clock() */ #include <math.h> /* truncf() */ #include <ctype.h> /* tolower() */