]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix lpstat hanging on IBM AIX
authorZdenek Dohnal <zdohnal@redhat.com>
Wed, 13 Sep 2023 08:28:13 +0000 (10:28 +0200)
committerZdenek Dohnal <zdohnal@redhat.com>
Wed, 13 Sep 2023 08:28:13 +0000 (10:28 +0200)
Some macros and functions weren't defined on IBM AIX, define them.

Update CHANGES.md as well with older fixes.

Fixes #773

CHANGES.md
cups/request.c
scheduler/log.c

index 02db7b9b61db15bb5ef1a70ce2d08435dc48d970..9c3d130796e114c535182f72a660174cf965976f 100644 (file)
@@ -10,6 +10,8 @@ Changes in CUPS v2.5b1 (TBA)
 - Updated `cupsArray` APIs.
 - Fixed Digest authentication support (Issue #260)
 - Fixed delays in lpd backend (Issue #741)
+- Fixed extensive looping in scheduler (Issue #604)
+- Fixed hanging of `lpstat` on IBM AIX (Issue #773)
 - Fixed segfault in `cupsGetNamedDest()` when trying to get default printer, but
   the default printer is not set (Issue #719)
 - Fixed printing multiple files on specific printers (Issue #643)
index 3c90361af71845a68ff72f33ed04406ba40147af..d52da153dd0f7de5589ae7703948f69e693d113c 100644 (file)
 #ifndef O_BINARY
 #  define O_BINARY 0
 #endif /* O_BINARY */
-#ifndef MSG_DONTWAIT
+#ifdef _AIX
+#  define MSG_DONTWAIT MSG_NONBLOCK
+#elif !defined(MSG_DONTWAIT)
 #  define MSG_DONTWAIT 0
-#endif /* !MSG_DONTWAIT */
+#endif /* _AIX */
 
 
 /*
index 80e182f535610dbb0ffd8a8ab67fc283e1a04b8f..267ce77a042524929370831e85fa9fab7530cace 100644 (file)
@@ -22,6 +22,9 @@
 #  include <systemd/sd-journal.h>
 #endif /* HAVE_ASL_H */
 #include <syslog.h>
+#ifndef va_copy
+#  define va_copy(__list1, __list2) ((void)(__list1 = __list2))
+#endif
 
 
 /*