summaryrefslogtreecommitdiffstats
path: root/generator/tests_c_api.ml
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 /generator/tests_c_api.ml
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 'generator/tests_c_api.ml')
-rw-r--r--generator/tests_c_api.ml4
1 files changed, 0 insertions, 4 deletions
diff --git a/generator/tests_c_api.ml b/generator/tests_c_api.ml
index acd8a749..ebde7b70 100644
--- a/generator/tests_c_api.ml
+++ b/generator/tests_c_api.ml
@@ -42,10 +42,6 @@ let rec generate_tests () =
#include <sys/types.h>
#include <fcntl.h>
-#ifndef O_CLOEXEC
-#define O_CLOEXEC 0
-#endif
-
#include \"guestfs.h\"
#define STREQ(a,b) (strcmp((a),(b)) == 0)