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. --- src/guestfs-internal.h | 4 ---- src/info.c | 4 ---- 2 files changed, 8 deletions(-) (limited to 'src') diff --git a/src/guestfs-internal.h b/src/guestfs-internal.h index 9bc41f0c..8f2e26dc 100644 --- a/src/guestfs-internal.h +++ b/src/guestfs-internal.h @@ -30,10 +30,6 @@ #include "hash.h" -#ifndef O_CLOEXEC -#define O_CLOEXEC 0 -#endif - #ifndef SOCK_CLOEXEC #define SOCK_CLOEXEC 0 #endif diff --git a/src/info.c b/src/info.c index 76f1f4e0..958f7b02 100644 --- a/src/info.c +++ b/src/info.c @@ -33,10 +33,6 @@ #include "guestfs-internal-actions.h" #include "guestfs_protocol.h" -#ifndef O_CLOEXEC -#define O_CLOEXEC 0 -#endif - static int run_qemu_img_info (guestfs_h *g, const char *filename, int (*fn) (guestfs_h *g, char *line, void *data), void *data); static int check_disk_format (guestfs_h *h, char *line, void *data); static int check_disk_virtual_size (guestfs_h *h, char *line, void *data); -- cgit