summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cgi.c8
-rw-r--r--main.h1
2 files changed, 8 insertions, 1 deletions
diff --git a/cgi.c b/cgi.c
index 76751fa..9f75399 100644
--- a/cgi.c
+++ b/cgi.c
@@ -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
41static const char * line1 = NULL, * line2 = NULL; 49static const char * line1 = NULL, * line2 = NULL;
42 50
43int print_on_correct_printer(void * user_data, unsigned flags, cups_dest_t * dest) { 51int print_on_correct_printer(void * user_data, unsigned flags, cups_dest_t * dest) {
diff --git a/main.h b/main.h
index 2f66920..8ce7f84 100644
--- a/main.h
+++ b/main.h
@@ -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// }}}
..