rdma-core: Do not use overloadable attribute with musl

clang fortify with glibc is where the issue happens so limit
it to just glibc

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2024-06-24 12:33:22 -07:00
parent f85e0edcea
commit 6b077bce55
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -20,18 +20,16 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
librdmacm/preload.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/librdmacm/preload.c b/librdmacm/preload.c
index d46beb1bb..e09b2aa85 100644
--- a/librdmacm/preload.c
+++ b/librdmacm/preload.c
@@ -792,8 +792,11 @@ ssize_t recv(int socket, void *buf, size_t len, int flags)
@@ -792,8 +792,11 @@ ssize_t recv(int socket, void *buf, size
return (fd_fork_get(socket, &fd) == fd_rsocket) ?
rrecv(fd, buf, len, flags) : real.recv(fd, buf, len, flags);
}
-
-ssize_t recvfrom(int socket, void *buf, size_t len, int flags,
+ssize_t
+#ifdef __clang__
+#if defined(__clang__) && defined(__GLIBC__)
+__attribute__((overloadable))
+#endif
+recvfrom(int socket, void *buf, size_t len, int flags,