From eb2fb50d46b0a27db9ccc32d3f4f32ece817402c Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Thu, 25 Apr 2019 15:11:42 +0100 Subject: [PATCH] Avoid defining inlinable fn for MACRO_PREDEF build Some compilers include them even when unused, and the link stage fails --- src/src/functions.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/src/functions.h b/src/src/functions.h index 1b1a17dcb..b902d2356 100644 --- a/src/src/functions.h +++ b/src/src/functions.h @@ -590,6 +590,7 @@ extern BOOL write_chunk(transport_ctx *, uschar *, int); extern ssize_t write_to_fd_buf(int, const uschar *, size_t); +#ifndef MACRO_PREDEF /* exim_chown - in some NFSv4 setups *seemes* to be an issue with chown(, ). @@ -621,6 +622,7 @@ exim_chown(const uschar *name, uid_t owner, gid_t group) return chown(CCS name, owner, group) ? exim_chown_failure(-1, name, owner, group) : 0; } +#endif /* !MACRO_PREDEF */ #endif /* _FUNCTIONS_H_ */ -- 2.25.1