mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +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(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Tue Dec 6 13:54:28 CET 2016 on sn-devel-144
This commit is contained in:
parent
4e32944b78
commit
a3add017e4
@ -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…
Reference in New Issue
Block a user