BUILD: debug/cli: condition test of O_ASYNC to its existence
authorWilly Tarreau <w@1wt.eu>
Tue, 25 Jan 2022 13:51:53 +0000 (14:51 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 26 Jan 2022 03:42:14 +0000 (04:42 +0100)
commit0dcd46eadc2033ff858523be2d25b1cfce4a1209
tree826dca88691f22b6320debde847440edfc584541
parent36221484c2b3112ec2a1d16b5c85dcf4f18d6873
BUILD: debug/cli: condition test of O_ASYNC to its existence

David Carlier reported a build breakage on Haiku since commit
5be7c198e ("DEBUG: cli: add a new "debug dev fd" expert command")
due to O_ASYNC not being defined. Ilya also reported it broke the
build on Cygwin. It's not that portable and sometimes defined as
O_NONBLOCK for portability. But here we don't even need that, as
we already condition other flags, let's just ignore it if it does
not exist.

(cherry picked from commit 410942b92a2687f690c886ae1fdc7ad69a3640e0)
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/debug.c