]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
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)
committerWilly Tarreau <w@1wt.eu>
Mon, 21 Dec 2020 07:45:26 +0000 (08:45 +0100)
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

index b535c0760264fc65f50e743bfbaa00711a6e4f32..55f922aaaf1b2a1865c53fcc6c42e99f7580b0b2 100644 (file)
 #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;