From ad118caa9f690114d11384b0813f30980cc333f3 Mon Sep 17 00:00:00 2001 From: Nick Alcock Date: Tue, 4 Jun 2019 15:04:49 +0100 Subject: libctf: work on platforms without O_CLOEXEC. (Not tested on any such platforms, since I don't have access to any at the moment. Testing encouraged.) libctf/ * configure.ac: Check for O_CLOEXEC. * ctf-decls.h (O_CLOEXEC): Define (to 0), if need be. * config.h.in: Regenerate. --- libctf/ctf-decls.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libctf/ctf-decls.h') diff --git a/libctf/ctf-decls.h b/libctf/ctf-decls.h index d12409e..c840b79 100644 --- a/libctf/ctf-decls.h +++ b/libctf/ctf-decls.h @@ -62,6 +62,10 @@ void ctf_qsort_r (void *base, size_t nmemb, size_t size, void *arg); #endif +#ifndef HAVE_O_CLOEXEC +# define O_CLOEXEC 0 +#endif + #undef MAX #undef MIN #define MAX(a, b) ((a) > (b) ? (a) : (b)) -- cgit v1.1