From: Jeremy Harris Date: Thu, 25 Apr 2019 14:11:42 +0000 (+0100) Subject: Avoid defining inlinable fn for MACRO_PREDEF build X-Git-Url: https://git.exim.org/users/jgh/exim.git/commitdiff_plain/eb2fb50d46b0a27db9ccc32d3f4f32ece817402c?ds=inline Avoid defining inlinable fn for MACRO_PREDEF build Some compilers include them even when unused, and the link stage fails --- 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_ */