The following commit has been merged in the master branch:
commit 8207d4d74e6b243ace853f2c5fb6d44f22c7710f
Author: Andrew Deason <[email protected]>
Date: Thu May 18 12:43:19 2023 -0500
AIX: Avoid COMPAT_43 for clang
We currently define COMPAT_43 for AIX. This causes some socket-related
structures and functions to be defined to be compatible with BSD 4.3,
but causes us to not get function prototypes for recvmsg() and
sendmsg(). When using the clang-based XLC 17.1, this causes errors:
.../src/rx/rx_lwp.c:414:12: error: call to undeclared function
'recvmsg'; ISO C99 and later do not support implicit function declarations
[-Wimplicit-function-declaration]
code = recvmsg(socket, msg_p, flags);
^
.../src/rx/rx_lwp.c:432:12: error: call to undeclared function
'sendmsg'; ISO C99 and later do not support implicit function declarations
[-Wimplicit-function-declaration]
while (sendmsg(socket, msg_p, flags) == -1) {
^
To avoid this, don't define COMPAT_43. To try to make sure we don't
change anything when using the old xlc, still define COMPAT_43 when
we're not using clang.
Change-Id: I4971df46f0b8e10463c42938d12fa27dff514da7
Reviewed-on: https://gerrit.openafs.org/15445
Reviewed-by: Cheyenne Wills <[email protected]>
Reviewed-by: Mark Vitale <[email protected]>
Tested-by: BuildBot <[email protected]>
Reviewed-by: Michael Meffie <[email protected]>
src/config/param.rs_aix72.h | 4 ++--
src/config/param.rs_aix73.h | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
--
OpenAFS Master Repository
_______________________________________________
OpenAFS-cvs mailing list
[email protected]
https://lists.openafs.org/mailman/listinfo/openafs-cvs