lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

030-musl.patch (1588B)


      1 --- a/include/sane/sanei_udp.h
      2 +++ b/include/sane/sanei_udp.h
      3 @@ -27,6 +27,9 @@
      4  #include <netinet/in.h>
      5  #include <netdb.h>
      6  #endif
      7 +#ifdef HAVE_SYS_TYPES_H
      8 +#include <sys/types.h>
      9 +#endif
     10  
     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
     15 @@ -9,6 +9,10 @@
     16     Panasonic KV-S20xx USB-SCSI scanners.
     17  */
     18  
     19 +#ifdef HAVE_SYS_TYPES_H
     20 +#include <sys/types.h>
     21 +#endif
     22 +
     23  #define COMMAND_BLOCK	1
     24  #define DATA_BLOCK	2
     25  #define RESPONSE_BLOCK	3
     26 --- a/backend/kvs40xx.h
     27 +++ b/backend/kvs40xx.h
     28 @@ -10,6 +10,9 @@
     29  
     30  #include "../include/sane/config.h"
     31  #include <semaphore.h>
     32 +#ifdef HAVE_SYS_TYPES_H
     33 +#include <sys/types.h>
     34 +#endif
     35  
     36  #undef  BACKEND_NAME
     37  #define BACKEND_NAME kvs40xx
     38 --- a/backend/hp5400.c
     39 +++ b/backend/hp5400.c
     40 @@ -67,6 +67,9 @@
     41  #include <stdlib.h>		/* malloc, free */
     42  #include <string.h>		/* memcpy */
     43  #include <stdio.h>
     44 +#ifdef HAVE_SYS_TYPES_H
     45 +#include <sys/types.h>
     46 +#endif
     47  
     48  
     49  #define HP5400_CONFIG_FILE "hp5400.conf"
     50 --- a/backend/hp5590.c
     51 +++ b/backend/hp5590.c
     52 @@ -48,6 +48,9 @@
     53  #include <stdio.h>
     54  #include <string.h>
     55  #include <unistd.h>
     56 +#ifdef HAVE_SYS_TYPES_H
     57 +#include <sys/types.h>
     58 +#endif
     59  
     60  #include "../include/sane/sane.h"
     61  #define BACKEND_NAME hp5590
     62 --- a/backend/epsonds-io.c
     63 +++ b/backend/epsonds-io.c
     64 @@ -16,6 +16,9 @@
     65  #include "sane/config.h"
     66  #include <ctype.h>
     67  #include <unistd.h>     /* sleep */
     68 +#ifdef HAVE_SYS_TYPES_H
     69 +#include <sys/types.h>
     70 +#endif
     71  
     72  #include "epsonds.h"
     73  #include "epsonds-io.h"