compat socket.h: add cygwin support
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 24 May 2012 17:46:21 +0000 (13:46 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 24 May 2012 17:46:21 +0000 (13:46 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@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 6ad4a3775198959b1ded8ffc04f50eb8bcbba7ea..c0322b84092232ad2bbb920f1b255a8ab6f48bed 100644 (file)
@@ -582,7 +582,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;
 
@@ -614,7 +614,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.038441 seconds and 4 git commands to generate.