blob: b04c9b7230c7591c41e98fd8d527d9d81ea7e997 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001From f2df1db11f3a9580774300e703b6f53dbcdb28ef Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 8 Jun 2018 20:17:57 -0700
4Subject: [PATCH] S_IFSOCK is defined in both glibc/musl
5
6Fixes
7
8preload.c:1183:46: error: '__S_IFSOCK' undeclared (first use in this function); did you mean 'S_IFSOCK'?
9
10Upstream-Status: Pending
11
12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13---
14 librdmacm/preload.c | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17diff --git a/librdmacm/preload.c b/librdmacm/preload.c
18index 0f2aa250..d46beb1b 100644
19--- a/librdmacm/preload.c
20+++ b/librdmacm/preload.c
21@@ -1180,7 +1180,7 @@ int __fxstat(int ver, int socket, struct stat *buf)
22 if (fd_get(socket, &fd) == fd_rsocket) {
23 ret = real.fxstat(ver, socket, buf);
24 if (!ret)
25- buf->st_mode = (buf->st_mode & ~S_IFMT) | __S_IFSOCK;
26+ buf->st_mode = (buf->st_mode & ~S_IFMT) | S_IFSOCK;
27 } else {
28 ret = real.fxstat(ver, fd, buf);
29 }