From fc0b70a60407e1e65610712a702f8286db3a328c Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 12 May 2026 21:22:54 +0200 Subject: Work on test code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- common.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'common.h') diff --git a/common.h b/common.h index c6bea51..6c44769 100644 --- a/common.h +++ b/common.h @@ -45,6 +45,11 @@ #endif +#if defined(POSIX_CLOSE_RESTART) && !defined(__linux__) +# define close(fd) posix_close(fd, 0) +#endif + + /** * Used for literal commas in macro calls */ @@ -447,6 +452,7 @@ int librecrypt_check_settings_(const char *settings, size_t len, const char *fmt # endif # include # include +# include # include # include # include -- cgit v1.2.3-70-g09d2