summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2016-12-06 09:44:28 +0100
committerKarolin Seeger <kseeger@samba.org>2016-12-06 10:22:39 +0100
commit10846561ba77700dbd8ee0c7083c577912b7b3c6 (patch)
tree6664394e6c68043f7dbd480cb32aa467abaa91f2
parent8377d8afbc072a4edbbc97263c94effb05b69137 (diff)
downloadsamba-10846561ba77700dbd8ee0c7083c577912b7b3c6.tar.gz
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 <asn@samba.org> Reviewed-by: Karolin Seeger <kseeger@samba.org>
-rw-r--r--source3/printing/print_cups.c6
1 files changed, 6 insertions, 0 deletions
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 <cups/cups.h>
#include <cups/language.h>
+#include <cups/http.h>
+
+/* 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