[PATCH 3/4] S_IFSOCK is defined in both glibc/musl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fixes

preload.c:1183:46: error: '__S_IFSOCK' undeclared (first use in this function); did you mean 'S_IFSOCK'?

Upstream-Status: Pending

Signed-off-by: Khem Raj <raj.khem@xxxxxxxxx>
---
 librdmacm/preload.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/librdmacm/preload.c b/librdmacm/preload.c
index 0f2aa250..d46beb1b 100644
--- a/librdmacm/preload.c
+++ b/librdmacm/preload.c
@@ -1180,7 +1180,7 @@ int __fxstat(int ver, int socket, struct stat *buf)
 	if (fd_get(socket, &fd) == fd_rsocket) {
 		ret = real.fxstat(ver, socket, buf);
 		if (!ret)
-			buf->st_mode = (buf->st_mode & ~S_IFMT) | __S_IFSOCK;
+			buf->st_mode = (buf->st_mode & ~S_IFMT) | S_IFSOCK;
 	} else {
 		ret = real.fxstat(ver, fd, buf);
 	}
-- 
2.17.1

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux