Merge pull request #1776 from aTanW/master
[feed/packages.git] / utils / sane-backends / patches / 030-musl.patch
1 --- a/include/sane/sanei_udp.h
2 +++ b/include/sane/sanei_udp.h
3 @@ -27,6 +27,7 @@
4 #include <netinet/in.h>
5 #include <netdb.h>
6 #endif
7 +#include <sys/types.h>
8
9 extern SANE_Status sanei_udp_open(const char *host, int port, int *fdp);
10 extern SANE_Status sanei_udp_open_broadcast(int *fdp);
11 --- a/backend/kvs20xx_cmd.h
12 +++ b/backend/kvs20xx_cmd.h
13 @@ -9,6 +9,8 @@
14 Panasonic KV-S20xx USB-SCSI scanners.
15 */
16
17 +#include <sys/types.h>
18 +
19 #define COMMAND_BLOCK 1
20 #define DATA_BLOCK 2
21 #define RESPONSE_BLOCK 3
22 --- a/backend/kvs40xx.h
23 +++ b/backend/kvs40xx.h
24 @@ -10,6 +10,7 @@
25
26 #include "../include/sane/config.h"
27 #include <semaphore.h>
28 +#include <sys/types.h>
29
30 #undef BACKEND_NAME
31 #define BACKEND_NAME kvs40xx
32 --- a/backend/hp5400.c
33 +++ b/backend/hp5400.c
34 @@ -67,6 +67,7 @@
35 #include <stdlib.h> /* malloc, free */
36 #include <string.h> /* memcpy */
37 #include <stdio.h>
38 +#include <sys/types.h>
39
40
41 #define HP5400_CONFIG_FILE "hp5400.conf"
42 --- a/backend/hp5590.c
43 +++ b/backend/hp5590.c
44 @@ -48,6 +48,7 @@
45 #include <stdio.h>
46 #include <string.h>
47 #include <unistd.h>
48 +#include <sys/types.h>
49
50 #include "../include/sane/sane.h"
51 #define BACKEND_NAME hp5590