From 79d2e7bbbd56455f5f73c030df41e8e1ed621df4 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Mon, 21 Dec 2020 08:43:50 +0100 Subject: [PATCH] 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. --- contrib/debug/poll.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/contrib/debug/poll.c b/contrib/debug/poll.c index b535c07602..55f922aaaf 100644 --- a/contrib/debug/poll.c +++ b/contrib/debug/poll.c @@ -17,6 +17,13 @@ #define POLLRDHUP 0 #endif +#ifndef MSG_NOSIGNAL +#define MSG_NOSIGNAL 0 +#endif +#ifndef MSG_MORE +#define MSG_MORE 0 +#endif + int verbose = 0; int cmd = 0; int cmdstep = 0; -- 2.47.3