From cb13ffe190ac41a9b77fe27521838f495c1a5077 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 17 Sep 2012 09:51:01 +0100 Subject: syntax: Remove definitions of O_CLOEXEC, except in examples (thanks Jim Meyering). The gnulib replacement header will now define this symbol if it's not defined already. --- tests/c-api/test-last-errno.c | 4 ---- tests/c-api/test-user-cancel.c | 4 ---- tests/xml/fake-libvirt-xml.c | 4 ---- 3 files changed, 12 deletions(-) (limited to 'tests') 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 #include -#ifndef O_CLOEXEC -#define O_CLOEXEC 0 -#endif - /* Old 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 -- cgit