X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fsessiond-comm%2Funix.c;h=cf2c17ff7ad62444861d562cb9ec42c09d8e1077;hp=bee133d8d9cbf8f32c70e8d849c4371ac6e7e1fc;hb=0641441730f08fa4f489db13621edbd85831ea4e;hpb=665886a6f89c35ccb8e6348a7798272778115e4d diff --git a/src/common/sessiond-comm/unix.c b/src/common/sessiond-comm/unix.c index bee133d8d..cf2c17ff7 100644 --- a/src/common/sessiond-comm/unix.c +++ b/src/common/sessiond-comm/unix.c @@ -16,7 +16,6 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#define _GNU_SOURCE #define _LGPL_SOURCE #include #include @@ -525,7 +524,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__) || defined(__CYGWIN__)) +#elif (defined(__FreeBSD__) || defined(__CYGWIN__) || defined(__sun__)) { int peer_ret; @@ -558,7 +557,7 @@ int lttcomm_setsockopt_creds_unix_sock(int sock) } return ret; } -#elif (defined(__FreeBSD__) || defined(__CYGWIN__)) +#elif (defined(__FreeBSD__) || defined(__CYGWIN__) || defined(__sun__)) LTTNG_HIDDEN int lttcomm_setsockopt_creds_unix_sock(int sock) {