summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-09-17 09:51:01 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-09-17 10:07:31 +0100
commitcb13ffe190ac41a9b77fe27521838f495c1a5077 (patch)
treeaf46870b186a26738f358f97d1a4a8e3db5d79eb /tests
parent2337b9ccd729e05b46cf6abb1f4173e6e994c1cb (diff)
downloadlibguestfs-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.c4
-rw-r--r--tests/c-api/test-user-cancel.c4
-rw-r--r--tests/xml/fake-libvirt-xml.c4
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