Gitweb:
https://git.exim.org/exim.git/commitdiff/eb2fb50d46b0a27db9ccc32d3f4f32ece817402c
Commit: eb2fb50d46b0a27db9ccc32d3f4f32ece817402c
Parent: 42e0d3fe36ac7270609a3389f5204a252bcf7d79
Author: Jeremy Harris <jgh146exb@???>
AuthorDate: Thu Apr 25 15:11:42 2019 +0100
Committer: Jeremy Harris <jgh146exb@???>
CommitDate: Thu Apr 25 15:11:42 2019 +0100
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 1b1a17d..b902d23 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(<exim-uid>, <exim-gid>).
@@ -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_ */