tools/libxendevicemodel: define O_CLOEXEC
authorOlaf Hering <olaf@aepfle.de>
Wed, 1 Mar 2017 12:27:08 +0000 (12:27 +0000)
committerWei Liu <wei.liu2@citrix.com>
Thu, 2 Mar 2017 08:32:30 +0000 (08:32 +0000)
commitd31828e348e7b7229d7ecb32f7f0bee7f125e61e
tree090177074ed26e526e7186851d66bb96a6ed561f
parent34b05462d93f06f9a08caf98b7aed865f6b796bd
tools/libxendevicemodel: define O_CLOEXEC

Some libc headers don't have O_CLOEXEC, we need to take care of it by
defining to 0 (on the ground that such glibc might barf on O_CLOEXEC).

Fixes e7745d8ef5 ("tools/libxendevicemodel: introduce a Linux-specific
implementation")

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libs/devicemodel/linux.c