error: '__u32' undeclared (first use in this function) Index: backend/v4l.c --- backend/v4l.c.orig +++ backend/v4l.c @@ -59,6 +59,7 @@ #include #include #include +#include #include #include @@ -83,6 +84,10 @@ #include #include "v4l.h" + +#if !defined(__linux__) +typedef uint32_t __u32; +#endif static const SANE_Device **devlist = NULL; static int num_devices;