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-22 13:18:52 +0100 |
| commit | 9e7644346dc4303316e59dda13ea5b2f60549626 (patch) | |
| tree | 8fb7a0bd0bfa67adc3204ab3160aaa004f0c2347 | |
| parent | 35882ba97722ddf9b4c55a332961b08ad8240dd7 (diff) | |
| download | libguestfs-9e7644346dc4303316e59dda13ea5b2f60549626.tar.gz libguestfs-9e7644346dc4303316e59dda13ea5b2f60549626.tar.xz libguestfs-9e7644346dc4303316e59dda13ea5b2f60549626.zip | |
tests: Add workaround for missing O_CLOEXEC.
| -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) { |
