Add missing <sys/types.h> includes

merge-requests/1/head
Luiz Angelo Daros de Luca 2015-10-15 12:35:00 +09:00 zatwierdzone przez Olaf Meeuwissen
rodzic 4f803bff08
commit 33495ef9b4
6 zmienionych plików z 19 dodań i 0 usunięć

Wyświetl plik

@ -16,6 +16,9 @@
#include "sane/config.h" #include "sane/config.h"
#include <ctype.h> #include <ctype.h>
#include <unistd.h> /* sleep */ #include <unistd.h> /* sleep */
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#include "epsonds.h" #include "epsonds.h"
#include "epsonds-io.h" #include "epsonds-io.h"

Wyświetl plik

@ -67,6 +67,9 @@
#include <stdlib.h> /* malloc, free */ #include <stdlib.h> /* malloc, free */
#include <string.h> /* memcpy */ #include <string.h> /* memcpy */
#include <stdio.h> #include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#define HP5400_CONFIG_FILE "hp5400.conf" #define HP5400_CONFIG_FILE "hp5400.conf"

Wyświetl plik

@ -48,6 +48,9 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#include "../include/sane/sane.h" #include "../include/sane/sane.h"
#define BACKEND_NAME hp5590 #define BACKEND_NAME hp5590

Wyświetl plik

@ -9,6 +9,10 @@
Panasonic KV-S20xx USB-SCSI scanners. Panasonic KV-S20xx USB-SCSI scanners.
*/ */
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#define COMMAND_BLOCK 1 #define COMMAND_BLOCK 1
#define DATA_BLOCK 2 #define DATA_BLOCK 2
#define RESPONSE_BLOCK 3 #define RESPONSE_BLOCK 3

Wyświetl plik

@ -10,6 +10,9 @@
#include "../include/sane/config.h" #include "../include/sane/config.h"
#include <semaphore.h> #include <semaphore.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#undef BACKEND_NAME #undef BACKEND_NAME
#define BACKEND_NAME kvs40xx #define BACKEND_NAME kvs40xx

Wyświetl plik

@ -27,6 +27,9 @@
#include <netinet/in.h> #include <netinet/in.h>
#include <netdb.h> #include <netdb.h>
#endif #endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
extern SANE_Status sanei_udp_open(const char *host, int port, int *fdp); extern SANE_Status sanei_udp_open(const char *host, int port, int *fdp);
extern SANE_Status sanei_udp_open_broadcast(int *fdp); extern SANE_Status sanei_udp_open_broadcast(int *fdp);