Closed StefCoene closed 1 year ago
I think it might be better for the code to read as follows:
#ifdef _AIX
# define MSG_DONTWAIT MSG_NONBLOCK
#elif !defined(MSG_DONTWAIT)
# define MSG_DONTWAIT 0
#endif /* _AIX */
Indeed, I got some warnings during compile time. @michaelrsweet patch is better.
@michaelrsweet I'll apply combination of the @StefCoene patch and your proposal directly to master - I take your comment as review.
AIX requires a patch so lpstat -a does not hang for 15 minutes. After 15 minutes, the command completes as expected.
This patch is also needed for the master version.
See also https://www3.software.ibm.com/aix/freeSoftware/aixtoolbox/PATCHES/cups-2.0.2-aix.patch I moved the patch higher up in the file:
Stef