X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=src%2Fcommon%2Fsessiond-comm%2Funix.h;h=24786b8fecbf2c2c805f4cb77d8cc7029ddad6f8;hb=e9492550eb58aff5f2a20ffd654fb46f8b9a87ea;hp=7eba1021b00d121b2ea8cd5ccdaf4493f02d56ad;hpb=8d9eb6d8a3b60f0b20abe470ccede407c44cf6cb;p=lttng-tools.git diff --git a/src/common/sessiond-comm/unix.h b/src/common/sessiond-comm/unix.h index 7eba1021b..24786b8fe 100644 --- a/src/common/sessiond-comm/unix.h +++ b/src/common/sessiond-comm/unix.h @@ -18,7 +18,6 @@ #ifndef _LTTCOMM_UNIX_H #define _LTTCOMM_UNIX_H -#define _GNU_SOURCE #include #include @@ -50,7 +49,7 @@ ssize_t lttcomm_recv_fds_unix_sock(int sock, int *fds, size_t nb_fd); LTTNG_HIDDEN ssize_t lttcomm_recv_unix_sock(int sock, void *buf, size_t len); LTTNG_HIDDEN -ssize_t lttcomm_send_unix_sock(int sock, void *buf, size_t len); +ssize_t lttcomm_send_unix_sock(int sock, const void *buf, size_t len); LTTNG_HIDDEN ssize_t lttcomm_send_creds_unix_sock(int sock, void *buf, size_t len);