compat socket.h: add cygwin support
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 24 May 2012 17:46:21 +0000 (13:46 -0400)
committerChristian Babeux <christian.babeux@efficios.com>
Fri, 7 Dec 2012 20:17:54 +0000 (15:17 -0500)
commit 5db8b7b1b6c49bfb25ffc438c95941eecee060f5 upstream.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Christian Babeux <christian.babeux@efficios.com>
src/common/compat/socket.h
src/common/sessiond-comm/sessiond-comm.c

index 69a91885ef0b6e45e5807993d6e812b3e9a40b71..4d2925f3b146fddd7d44c2aee95f94b4365a0484 100644 (file)
@@ -37,7 +37,7 @@ typedef struct ucred lttng_sock_cred;
 #define LTTNG_SOCK_GET_GID_CRED(c) LTTNG_REF(c)->gid
 #define LTTNG_SOCK_GET_PID_CRED(c) LTTNG_REF(c)->pid
 
-#elif defined(__FreeBSD__)
+#elif (defined(__FreeBSD__) || defined(__CYGWIN__))
 
 struct lttng_sock_cred {
        uid_t uid;
index a14131cdae00d4a6ef8d635147d9d7b944e74ba0..b762694e530ce3e665dc7a1910ef5371f8b43148 100644 (file)
@@ -583,7 +583,7 @@ ssize_t lttcomm_recv_creds_unix_sock(int sock, void *buf, size_t len,
        }
 
        memcpy(creds, CMSG_DATA(cmptr), sizeof_cred);
-#elif defined(__FreeBSD__)
+#elif (defined(__FreeBSD__) || defined(__CYGWIN__))
        {
                int peer_ret;
 
@@ -615,7 +615,7 @@ int lttcomm_setsockopt_creds_unix_sock(int sock)
        }
        return ret;
 }
-#elif defined(__FreeBSD__)
+#elif (defined(__FreeBSD__) || defined(__CYGWIN__))
 int lttcomm_setsockopt_creds_unix_sock(int sock)
 {
        return 0;
This page took 0.026562 seconds and 4 git commands to generate.