diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-09-17 09:51:01 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-09-17 10:07:31 +0100 |
commit | cb13ffe190ac41a9b77fe27521838f495c1a5077 (patch) | |
tree | af46870b186a26738f358f97d1a4a8e3db5d79eb /tests | |
parent | 2337b9ccd729e05b46cf6abb1f4173e6e994c1cb (diff) | |
download | libguestfs-cb13ffe190ac41a9b77fe27521838f495c1a5077.tar.gz libguestfs-cb13ffe190ac41a9b77fe27521838f495c1a5077.tar.xz libguestfs-cb13ffe190ac41a9b77fe27521838f495c1a5077.zip |
syntax: Remove definitions of O_CLOEXEC, except in examples (thanks Jim Meyering).
The gnulib <fcntl.h> replacement header will now define this symbol if
it's not defined already.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/c-api/test-last-errno.c | 4 | ||||
-rw-r--r-- | tests/c-api/test-user-cancel.c | 4 | ||||
-rw-r--r-- | tests/xml/fake-libvirt-xml.c | 4 |
3 files changed, 0 insertions, 12 deletions
diff --git a/tests/c-api/test-last-errno.c b/tests/c-api/test-last-errno.c index b515624f..1773349a 100644 --- a/tests/c-api/test-last-errno.c +++ b/tests/c-api/test-last-errno.c @@ -31,10 +31,6 @@ #include "guestfs.h" -#ifndef O_CLOEXEC -#define O_CLOEXEC 0 -#endif - int main (int argc, char *argv[]) { diff --git a/tests/c-api/test-user-cancel.c b/tests/c-api/test-user-cancel.c index 8bc2fc20..164997a4 100644 --- a/tests/c-api/test-user-cancel.c +++ b/tests/c-api/test-user-cancel.c @@ -46,10 +46,6 @@ #include "guestfs.h" -#ifndef O_CLOEXEC -#define O_CLOEXEC 0 -#endif - static const char *filename = "test.img"; static const off_t filesize = 1024*1024*1024; diff --git a/tests/xml/fake-libvirt-xml.c b/tests/xml/fake-libvirt-xml.c index 61065d3d..a34b700a 100644 --- a/tests/xml/fake-libvirt-xml.c +++ b/tests/xml/fake-libvirt-xml.c @@ -25,10 +25,6 @@ #include <sys/types.h> #include <sys/stat.h> -#ifndef O_CLOEXEC -#define O_CLOEXEC 0 -#endif - /* Old <libvirt.h> had a slightly different definition of * virDomainGetXMLDesc (using 'int' for flags instead of 'unsigned * int'). To avoid an error trying to redefine it with a different |