diff options
author | Max Christian Pohle | 2021-11-23 18:22:33 +0100 |
---|---|---|
committer | Max Christian Pohle | 2021-11-23 18:22:33 +0100 |
commit | 59ee4b009af2921808887169e85d33a29b6a1d45 (patch) | |
tree | 190f5cc7d6b83c850d21e1bdc16d2992195ff104 | |
parent | 593739a9501a0b316dfcb29896afb3b15406fda8 (diff) | |
download | ohmycgi-59ee4b009af2921808887169e85d33a29b6a1d45.tar.bz2 ohmycgi-59ee4b009af2921808887169e85d33a29b6a1d45.zip |
Corrected header files for FreeBSD compatibility
-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 | // }}} |