summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2019-04-25 15:11:42 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2019-04-25 15:11:42 +0100
commiteb2fb50d46b0a27db9ccc32d3f4f32ece817402c (patch)
tree48fb1f15aa4949debb23a6659654c754069d014d /src
parent42e0d3fe36ac7270609a3389f5204a252bcf7d79 (diff)
Avoid defining inlinable fn for MACRO_PREDEF build
Some compilers include them even when unused, and the link stage fails
Diffstat (limited to 'src')
-rw-r--r--src/src/functions.h2
1 files changed, 2 insertions, 0 deletions
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(<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_ */