Some macros and functions weren't defined on IBM AIX, define them.
Update CHANGES.md as well with older fixes.
Fixes #773
- 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)
#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 */
/*
# include <systemd/sd-journal.h>
#endif /* HAVE_ASL_H */
#include <syslog.h>
+#ifndef va_copy
+# define va_copy(__list1, __list2) ((void)(__list1 = __list2))
+#endif
/*