CONTRIB: debug: address "poll" utility build on non-linux platforms
authorWilly Tarreau <w@1wt.eu>
Mon, 21 Dec 2020 07:43:50 +0000 (08:43 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 6 Jan 2021 13:40:52 +0000 (14:40 +0100)
commit361e90eb459f9e9418c93c3cc2da5d6bc02c159d
treef2d116e9ed04cc15f46f7057541eef37f02c6218
parentf87775390a22880b0f6b979d35343988fdd109a2
CONTRIB: debug: address "poll" utility build on non-linux platforms

MSG_NOSIGNAL and MSG_MORE are not defined everywhere, let's make them
zero when not defined. It will roughly result in the same behavior,
albeit a bit less optimal, which is no big deal when debugging. This
should fix issue #1014.

(cherry picked from commit 79d2e7bbbd56455f5f73c030df41e8e1ed621df4)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
contrib/debug/poll.c