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

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