mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-04-20 11:38:34 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user