From 91bf63b43bf4cc9ff640bd3c11549644cef05e6e Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sat, 11 Aug 2012 19:08:15 -0500 Subject: Fix FTBFS on CUPS < 1.6 --- tdeprint/cups/ipprequest.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tdeprint') diff --git a/tdeprint/cups/ipprequest.h b/tdeprint/cups/ipprequest.h index 11d7f4091..84a7c5b18 100644 --- a/tdeprint/cups/ipprequest.h +++ b/tdeprint/cups/ipprequest.h @@ -27,6 +27,8 @@ #include +#include "config.h" + class IppRequest { public: @@ -72,6 +74,9 @@ public: bool keyword(const TQString& name, TQStringList& value); bool mime(const TQString& name, TQString& value); ipp_attribute_t* first(); +#ifndef HAVE_CUPS_1_6 + ipp_attribute_t* last(); +#endif // HAVE_CUPS_1_6 ipp_t* request(); TQMap toMap(int group = -1); void setMap(const TQMap& opts); @@ -178,6 +183,11 @@ inline bool IppRequest::mime(const TQString& name, TQString& value) inline bool IppRequest::doRequest(const TQString& res) { return doFileRequest(res); } +#ifndef HAVE_CUPS_1_6 +inline ipp_attribute_t* IppRequest::last() +{ return (request_ ? request_->last : NULL); } +#endif // HAVE_CUPS_1_6 + inline void IppRequest::setHost(const TQString& host) { host_ = host; } -- cgit v1.2.1