Skip to content

Commit

Permalink
Fix lpstat hanging on IBM AIX
Browse files Browse the repository at this point in the history
Some macros and functions weren't defined on IBM AIX, define them.

Update CHANGES.md as well with older fixes.

Fixes #773
  • Loading branch information
zdohnal committed Sep 13, 2023
1 parent e7fe8a8 commit 3f763a9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 4 additions & 2 deletions cups/request.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@
#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 */


/*
Expand Down
3 changes: 3 additions & 0 deletions scheduler/log.c
Original file line number Diff line number Diff line change
Expand Up @@ -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


/*
Expand Down

0 comments on commit 3f763a9

Please sign in to comment.