Skip to content

Commit 8b4e722

Browse files
committed
preload: fix build issue with clang 19
librdmacm/preload.c:796:9: error: at most one overload for a given name may lack the 'overloadable' attribute Signed-off-by: Z. Liu <[email protected]>
1 parent 3b0168a commit 8b4e722

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

librdmacm/preload.c

+5-1
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,11 @@ ssize_t recv(int socket, void *buf, size_t len, int flags)
793793
rrecv(fd, buf, len, flags) : real.recv(fd, buf, len, flags);
794794
}
795795

796-
ssize_t recvfrom(int socket, void *buf, size_t len, int flags,
796+
ssize_t
797+
#ifdef __clang__
798+
__attribute__((overloadable))
799+
#endif
800+
recvfrom(int socket, void *buf, size_t len, int flags,
797801
struct sockaddr *src_addr, socklen_t *addrlen)
798802
{
799803
int fd;

0 commit comments

Comments
 (0)