projects
/
haproxy-2.5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03ca605
)
CONTRIB: debug: address "poll" utility build on non-linux platforms
author
Willy Tarreau
<w@1wt.eu>
Mon, 21 Dec 2020 07:43:50 +0000
(08:43 +0100)
committer
Willy 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
patch
|
blob
|
history
diff --git
a/contrib/debug/poll.c
b/contrib/debug/poll.c
index
b535c07
..
55f922a
100644
(file)
--- 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;