summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Christian Pohle2021-11-23 18:22:33 +0100
committerMax Christian Pohle2021-11-23 18:22:33 +0100
commit59ee4b009af2921808887169e85d33a29b6a1d45 (patch)
tree190f5cc7d6b83c850d21e1bdc16d2992195ff104
parent593739a9501a0b316dfcb29896afb3b15406fda8 (diff)
downloadohmycgi-59ee4b009af2921808887169e85d33a29b6a1d45.tar.bz2
ohmycgi-59ee4b009af2921808887169e85d33a29b6a1d45.zip
Corrected header files for FreeBSD compatibility
-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// }}}
..