diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-06-22 12:58:49 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-06-28 09:09:48 +0100 |
commit | ea5797bb54d96bbb6631186872b321104fef50f5 (patch) | |
tree | aec5e96e3a7d275a7457a854f334fb019d187d76 | |
parent | 1831b6b4cf7ac313eb86b260d7eb6d1f7657d16d (diff) | |
download | libguestfs-ea5797bb54d96bbb6631186872b321104fef50f5.tar.gz libguestfs-ea5797bb54d96bbb6631186872b321104fef50f5.tar.xz libguestfs-ea5797bb54d96bbb6631186872b321104fef50f5.zip |
tests: Add workaround for missing O_CLOEXEC.
(cherry picked from commit 9e7644346dc4303316e59dda13ea5b2f60549626)
-rw-r--r-- | tests/xml/fake_libvirt_xml.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/xml/fake_libvirt_xml.c b/tests/xml/fake_libvirt_xml.c index 61192413..c44e5fc1 100644 --- a/tests/xml/fake_libvirt_xml.c +++ b/tests/xml/fake_libvirt_xml.c @@ -27,6 +27,10 @@ #include <libvirt/libvirt.h> +#ifndef O_CLOEXEC +#define O_CLOEXEC 0 +#endif + char * virDomainGetXMLDesc (virDomainPtr dom, unsigned int flags) { |