printing: Fix building with CUPS version older than 1.7
authorAndreas Schneider <asn@samba.org>
Tue, 6 Dec 2016 08:44:28 +0000 (09:44 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 6 Dec 2016 12:54:28 +0000 (13:54 +0100)
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>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Tue Dec  6 13:54:28 CET 2016 on sn-devel-144

source3/printing/print_cups.c

index 673a150941e016a724d75ad995abd3fc1f8eeae7..7c4d35d6d3408da055e645d3530451d36e32bb4d 100644 (file)
 #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