From 1831b6b4cf7ac313eb86b260d7eb6d1f7657d16d Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 22 Jun 2012 12:57:14 +0100 Subject: tests: Fix broken workarounds for missing O_CLOEXEC. (cherry picked from commit 35882ba97722ddf9b4c55a332961b08ad8240dd7) --- tests/c-api/test-last-errno.c | 2 +- tests/c-api/test-user-cancel.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/c-api/test-last-errno.c b/tests/c-api/test-last-errno.c index ab4479be..49ec556d 100644 --- a/tests/c-api/test-last-errno.c +++ b/tests/c-api/test-last-errno.c @@ -32,7 +32,7 @@ #include "guestfs.h" #ifndef O_CLOEXEC -#define O_CLOEXEC +#define O_CLOEXEC 0 #endif int diff --git a/tests/c-api/test-user-cancel.c b/tests/c-api/test-user-cancel.c index 1ae30c3d..fa860f5d 100644 --- a/tests/c-api/test-user-cancel.c +++ b/tests/c-api/test-user-cancel.c @@ -47,7 +47,7 @@ #include "guestfs.h" #ifndef O_CLOEXEC -#define O_CLOEXEC +#define O_CLOEXEC 0 #endif static const char *filename = "test.img"; -- cgit