1 --- a/include/sane/sanei_udp.h
2 +++ b/include/sane/sanei_udp.h
4 #include <netinet/in.h>
7 +#ifdef HAVE_SYS_TYPES_H
8 +#include <sys/types.h>
11 extern SANE_Status sanei_udp_open(const char *host, int port, int *fdp);
12 extern SANE_Status sanei_udp_open_broadcast(int *fdp);
13 --- a/backend/kvs20xx_cmd.h
14 +++ b/backend/kvs20xx_cmd.h
16 Panasonic KV-S20xx USB-SCSI scanners.
19 +#ifdef HAVE_SYS_TYPES_H
20 +#include <sys/types.h>
23 #define COMMAND_BLOCK 1
25 #define RESPONSE_BLOCK 3
26 --- a/backend/kvs40xx.h
27 +++ b/backend/kvs40xx.h
30 #include "../include/sane/config.h"
31 #include <semaphore.h>
32 +#ifdef HAVE_SYS_TYPES_H
33 +#include <sys/types.h>
37 #define BACKEND_NAME kvs40xx
38 --- a/backend/hp5400.c
39 +++ b/backend/hp5400.c
41 #include <stdlib.h> /* malloc, free */
42 #include <string.h> /* memcpy */
44 +#ifdef HAVE_SYS_TYPES_H
45 +#include <sys/types.h>
49 #define HP5400_CONFIG_FILE "hp5400.conf"
50 --- a/backend/hp5590.c
51 +++ b/backend/hp5590.c
56 +#ifdef HAVE_SYS_TYPES_H
57 +#include <sys/types.h>
60 #include "../include/sane/sane.h"
61 #define BACKEND_NAME hp5590
62 --- a/backend/epsonds-io.c
63 +++ b/backend/epsonds-io.c
65 #include "sane/config.h"
67 #include <unistd.h> /* sleep */
68 +#ifdef HAVE_SYS_TYPES_H
69 +#include <sys/types.h>
73 #include "epsonds-io.h"