From 9a6163febb7788211a7f54ee974c4e3a580884d5 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 6 Dec 2016 09:44:28 +0100 Subject: [PATCH] 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 --- source3/printing/print_cups.c | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.11.0