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 /cgi.c | |
parent | 593739a9501a0b316dfcb29896afb3b15406fda8 (diff) | |
download | ohmycgi-59ee4b009af2921808887169e85d33a29b6a1d45.tar.bz2 ohmycgi-59ee4b009af2921808887169e85d33a29b6a1d45.zip |
Corrected header files for FreeBSD compatibility
Diffstat (limited to 'cgi.c')
-rw-r--r-- | cgi.c | 8 |
1 files changed, 8 insertions, 0 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) { |