diff options
-rw-r--r-- | cat/virt-ls.c | 4 | ||||
-rw-r--r-- | cfg.mk | 1 | ||||
-rw-r--r-- | daemon/daemon.h | 4 | ||||
-rw-r--r-- | fish/fish.h | 4 | ||||
-rw-r--r-- | generator/generator_tests_c_api.ml | 4 | ||||
-rw-r--r-- | src/guestfs-internal.h | 4 | ||||
-rw-r--r-- | tests/c-api/test-last-errno.c | 4 | ||||
-rw-r--r-- | tests/c-api/test-user-cancel.c | 4 | ||||
-rw-r--r-- | tests/xml/fake-libvirt-xml.c | 4 |
9 files changed, 1 insertions, 32 deletions
diff --git a/cat/virt-ls.c b/cat/virt-ls.c index 8ce0334a..49824de0 100644 --- a/cat/virt-ls.c +++ b/cat/virt-ls.c @@ -36,10 +36,6 @@ #include "guestfs.h" #include "options.h" -#ifndef O_CLOEXEC -#define O_CLOEXEC 0 -#endif - /* Currently open libguestfs handle. */ guestfs_h *g; @@ -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/daemon.h b/daemon/daemon.h index 6df2580a..bcd0225c 100644 --- a/daemon/daemon.h +++ b/daemon/daemon.h @@ -30,10 +30,6 @@ #include "guestfs_protocol.h" -#ifndef O_CLOEXEC -#define O_CLOEXEC 0 -#endif - /*-- in guestfsd.c --*/ extern int verbose; diff --git a/fish/fish.h b/fish/fish.h index cc4065ae..e14053ad 100644 --- a/fish/fish.h +++ b/fish/fish.h @@ -23,10 +23,6 @@ #include "fish-cmds.h" -#ifndef O_CLOEXEC -#define O_CLOEXEC 0 -#endif - #ifndef SOCK_CLOEXEC #define SOCK_CLOEXEC 0 #endif diff --git a/generator/generator_tests_c_api.ml b/generator/generator_tests_c_api.ml index 2449c58e..186eeb7a 100644 --- a/generator/generator_tests_c_api.ml +++ b/generator/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) diff --git a/src/guestfs-internal.h b/src/guestfs-internal.h index 13dc9d32..fcdf00a8 100644 --- a/src/guestfs-internal.h +++ b/src/guestfs-internal.h @@ -28,10 +28,6 @@ #include "hash.h" -#ifndef O_CLOEXEC -#define O_CLOEXEC 0 -#endif - #ifndef SOCK_CLOEXEC #define SOCK_CLOEXEC 0 #endif diff --git a/tests/c-api/test-last-errno.c b/tests/c-api/test-last-errno.c index 49ec556d..3738e328 100644 --- a/tests/c-api/test-last-errno.c +++ b/tests/c-api/test-last-errno.c @@ -31,10 +31,6 @@ #include "guestfs.h" -#ifndef O_CLOEXEC -#define O_CLOEXEC 0 -#endif - int main (int argc, char *argv[]) { diff --git a/tests/c-api/test-user-cancel.c b/tests/c-api/test-user-cancel.c index fa860f5d..bff25a1d 100644 --- a/tests/c-api/test-user-cancel.c +++ b/tests/c-api/test-user-cancel.c @@ -46,10 +46,6 @@ #include "guestfs.h" -#ifndef O_CLOEXEC -#define O_CLOEXEC 0 -#endif - static const char *filename = "test.img"; static const off_t filesize = 1024*1024*1024; diff --git a/tests/xml/fake-libvirt-xml.c b/tests/xml/fake-libvirt-xml.c index 61065d3d..a34b700a 100644 --- a/tests/xml/fake-libvirt-xml.c +++ b/tests/xml/fake-libvirt-xml.c @@ -25,10 +25,6 @@ #include <sys/types.h> #include <sys/stat.h> -#ifndef O_CLOEXEC -#define O_CLOEXEC 0 -#endif - /* Old <libvirt.h> had a slightly different definition of * virDomainGetXMLDesc (using 'int' for flags instead of 'unsigned * int'). To avoid an error trying to redefine it with a different |