From 6b077bce55732466f6ab4572655028ac02cd0f5e Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Mon, 24 Jun 2024 12:33:22 -0700 Subject: [PATCH] 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 --- ...brdmacm-Use-overloadable-function-attribute-with-c.patch | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/meta-networking/recipes-support/rdma-core/rdma-core/0001-librdmacm-Use-overloadable-function-attribute-with-c.patch b/meta-networking/recipes-support/rdma-core/rdma-core/0001-librdmacm-Use-overloadable-function-attribute-with-c.patch index 9cd240189e..092f4431bf 100644 --- a/meta-networking/recipes-support/rdma-core/rdma-core/0001-librdmacm-Use-overloadable-function-attribute-with-c.patch +++ b/meta-networking/recipes-support/rdma-core/rdma-core/0001-librdmacm-Use-overloadable-function-attribute-with-c.patch @@ -20,18 +20,16 @@ Signed-off-by: Khem Raj 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,