Rainer Gerhards 97c2ac0db3
imkmsg fix: Handle EAGAIN/EWOULDBLOCK check portably
On some systems, EAGAIN and EWOULDBLOCK are defined to the same
value, causing a `-Wlogical-op` warning for the redundant logical
'or' in the errno check.

While portable code must check for both cases, this warning is
unwanted.

This change uses a preprocessor directive to conditionally compile
the check for `errno == EWOULDBLOCK` only on platforms where its value
differs from EAGAIN. This silences the warning without affecting
portability.
2025-07-06 15:17:15 +02:00
..
2025-06-14 14:38:51 +02:00
2019-02-14 14:36:05 +01:00
2023-01-13 11:03:55 +08:00
2025-06-14 14:38:51 +02:00
2025-06-14 14:38:51 +02:00
2018-07-31 09:44:27 +02:00
2022-02-17 10:54:12 +01:00
2024-12-05 08:59:43 +01:00
2018-07-31 09:44:27 +02:00
2025-06-14 14:38:51 +02:00
2025-06-14 14:38:51 +02:00
2025-06-14 14:38:51 +02:00
2018-07-31 09:44:27 +02:00
2022-02-17 10:54:12 +01:00
2022-02-17 10:54:12 +01:00
2019-09-24 20:45:25 +02:00
2019-12-26 17:37:14 +01:00

This directory contains a number of possibly useful things that do not
directly relate to rsyslog. They are not actively supported, but as
I said often helpful. Use them with some care, as they may be outdated
in respect to the current release of rsyslog.

At least some of this stuff has been found by our users and been
included after a brief check and possibly an adaptation. If you have
something useful you would like to see in contrib, just drop us a 
note (see https://www.rsyslog.com for how to do that at the time your
are reading this document).

rgerhards, 2007-08-08