diff options
-rw-r--r-- | cgi.c | 8 | ||||
-rw-r--r-- | main.h | 1 |
2 files changed, 8 insertions, 1 deletions
@@ -38,6 +38,14 @@ | |||
38 | #include "main.h" | 38 | #include "main.h" |
39 | #include <cups/cups.h> | 39 | #include <cups/cups.h> |
40 | 40 | ||
41 | # ifdef __FreeBSD__ | ||
42 | # include <sys/types.h> | ||
43 | # include <sys/socket.h> | ||
44 | # include <sys/uio.h> | ||
45 | # else | ||
46 | # include <sys/sendfile.h> | ||
47 | # endif | ||
48 | |||
41 | static const char * line1 = NULL, * line2 = NULL; | 49 | static const char * line1 = NULL, * line2 = NULL; |
42 | 50 | ||
43 | int print_on_correct_printer(void * user_data, unsigned flags, cups_dest_t * dest) { | 51 | int print_on_correct_printer(void * user_data, unsigned flags, cups_dest_t * dest) { |
@@ -46,7 +46,6 @@ | |||
46 | #include <errno.h> | 46 | #include <errno.h> |
47 | #include <arpa/inet.h> | 47 | #include <arpa/inet.h> |
48 | #include <fcntl.h> | 48 | #include <fcntl.h> |
49 | #include <sys/sendfile.h> | ||
50 | #include <sys/stat.h> | 49 | #include <sys/stat.h> |
51 | // #include <pthread.h> // maybe later | 50 | // #include <pthread.h> // maybe later |
52 | // }}} | 51 | // }}} |