Blame SOURCES/cups-pk-helper-0.2.6-ipp-jstate.patch

a4783c
--- cups-pk-helper-0.2.6/src/cups.c
a4783c
+++ cups-pk-helper-0.2.6/src/cups.c
a4783c
@@ -87,6 +87,17 @@ ippSetString(ipp_t            *ipp,
a4783c
 }
a4783c
 #endif
a4783c
 
a4783c
+/* The ipp_jstate_t enum was added in CUPS 1.7 */
a4783c
+#if ((CUPS_VERSION_MAJOR < 1) || (CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR < 7))
a4783c
+#define IPP_JSTATE_PENDING IPP_JOB_PENDING
a4783c
+#define IPP_JSTATE_HELD IPP_JOB_HELD
a4783c
+#define IPP_JSTATE_PROCESSING IPP_JOB_PROCESSING
a4783c
+#define IPP_JSTATE_STOPPED IPP_JOB_STOPPED
a4783c
+#define IPP_JSTATE_CANCELED IPP_JOB_CANCELED
a4783c
+#define IPP_JSTATE_ABORTED IPP_JOB_ABORTED
a4783c
+#define IPP_JSTATE_COMPLETED IPP_JOB_COMPLETED
a4783c
+#endif
a4783c
+
a4783c
 /* This is 0.1 second */
a4783c
 #define RECONNECT_DELAY        100000
a4783c
 /* We try to reconnect during 3 seconds. It's still a fairly long time even for