summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-05-14 08:22:03 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-05-14 10:24:53 +0100
commita219fede920dce9157f23ed8dec0f3aa18c6df44 (patch)
treebea68504fe8e8da42a3e017a17a855362eca5a86 /examples
parent9cf19466f0b296cb20136c3c38eaf601612fd22b (diff)
downloadlibguestfs-a219fede920dce9157f23ed8dec0f3aa18c6df44.tar.gz
libguestfs-a219fede920dce9157f23ed8dec0f3aa18c6df44.tar.xz
libguestfs-a219fede920dce9157f23ed8dec0f3aa18c6df44.zip
debian: examples: Don't break when O_CLOEXEC is not defined.
This affected Debian 6. This fixes commit 46b6766156ace142443b36e20e55074c544ae6cc.
Diffstat (limited to 'examples')
-rw-r--r--examples/mount_local.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/mount_local.c b/examples/mount_local.c
index 3e18fd90..54aa9e44 100644
--- a/examples/mount_local.c
+++ b/examples/mount_local.c
@@ -14,6 +14,10 @@
#include <guestfs.h>
+#ifndef O_CLOEXEC
+#define O_CLOEXEC 0
+#endif
+
static void
usage (void)
{