xenstored: fix build on libc without O_CLOEXEC
authorJan Beulich <jbeulich@suse.com>
Wed, 27 Jan 2021 16:08:32 +0000 (17:08 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 27 Jan 2021 16:08:32 +0000 (17:08 +0100)
commitf8708b0ed6d549d1d29b8b5cc287f1f2b642bc63
tree93028171e1f816ded7c7c5d0b72d181cc357442a
parent56d599351879eeb7d2212ebb788d87ddb26f9fca
xenstored: fix build on libc without O_CLOEXEC

The call to lu_read_state() would remain unresolved in this case. Frame
the construct by a suitable #ifdef, and while at it also frame command
line handling related pieces similarly.

Fixes: 9777fa6b6ea0 ("tools/xenstore: evaluate the live update flag when starting")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/xenstore/xenstored_core.c