mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
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> Autobuild-User(v4-5-test): Karolin Seeger <kseeger@samba.org> Autobuild-Date(v4-5-test): Tue Dec 6 14:21:49 CET 2016 on sn-devel-144
This commit is contained in:
parent
d869ba094a
commit
343718c30f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user