X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fcompat%2Fsocket.h;h=1b9989369a30132c1d44e1583b6751497f93a4cb;hb=86eff0042bf0b9e6277b281c4f3a680d997790d2;hp=78610957b806e4c0d3e61d316a4e49baf649142e;hpb=fbb1fd3a999509ca90c49577e53a47c23433d6f5;p=lttng-tools.git diff --git a/src/common/compat/socket.h b/src/common/compat/socket.h index 78610957b..1b9989369 100644 --- a/src/common/compat/socket.h +++ b/src/common/compat/socket.h @@ -1,18 +1,8 @@ /* - * Copyright (C) 2011 - David Goulet + * Copyright (C) 2011 David Goulet * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License, version 2 only, - * as published by the Free Software Foundation. + * SPDX-License-Identifier: GPL-2.0-only * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for - * more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #ifndef _COMPAT_SOCKET_H @@ -122,7 +112,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__) || defined(__CYGWIN__) || defined(__sun__)) +#elif (defined(__FreeBSD__) || defined(__CYGWIN__) || defined(__sun__) || defined(__APPLE__)) struct lttng_sock_cred { uid_t uid;