summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cfg.mk1
-rw-r--r--daemon/guestfsd.c5
2 files changed, 1 insertions, 5 deletions
diff --git a/cfg.mk b/cfg.mk
index b134842e..d06cefe1 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -27,6 +27,7 @@ url_dir_list = \
# Exclude some filenames.
exclude_file_name_regexp--sc_bindtextdomain = ^(daemon|erlang|examples|tests)/
exclude_file_name_regexp--sc_error_message_period = ^php/
+exclude_file_name_regexp--sc_prohibit_always-defined_macros = ^examples/
# Tests not to run as part of "make distcheck".
local-checks-to-skip = \
diff --git a/daemon/guestfsd.c b/daemon/guestfsd.c
index f888cdc6..8adffd66 100644
--- a/daemon/guestfsd.c
+++ b/daemon/guestfsd.c
@@ -59,11 +59,6 @@ static char *read_cmdline (void);
# define MAX(a,b) ((a)>(b)?(a):(b))
#endif
-/* Not the end of the world if this open flag is not defined. */
-#ifndef O_CLOEXEC
-# define O_CLOEXEC 0
-#endif
-
/* If root device is an ext2 filesystem, this is the major and minor.
* This is so we can ignore this device from the point of view of the
* user, eg. in guestfs_list_devices and many other places.