From: Andreas Schneider Date: Tue, 6 Dec 2016 08:44:28 +0000 (+0100) Subject: printing: Fix building with CUPS version older than 1.7 X-Git-Tag: samba-4.4.9~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=644e503e821325d39b6b2c29b01b6d165fcbd485;p=thirdparty%2Fsamba.git printing: Fix building with CUPS version older than 1.7 BUG: https://bugzilla.samba.org/show_bug.cgi?id=12183 Signed-off-by: Andreas Schneider Reviewed-by: Karolin Seeger --- diff --git a/source3/printing/print_cups.c b/source3/printing/print_cups.c index 673a150941e..7c4d35d6d34 100644 --- a/source3/printing/print_cups.c +++ b/source3/printing/print_cups.c @@ -31,6 +31,12 @@ #ifdef HAVE_CUPS #include #include +#include + +/* CUPS prior to version 1.7 doesn't have HTTP_URI_STATUS_OK */ +#if (CUPS_VERSION_MAJOR == 1) && (CUPS_VERSION_MINOR < 7) +#define HTTP_URI_STATUS_OK HTTP_URI_OK +#endif #if (CUPS_VERSION_MAJOR > 1) || (CUPS_VERSION_MINOR > 5) #define HAVE_CUPS_1_6 1