From nobody Tue Jul 30 16:39:39 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WYLY81c29z5RXfD; Tue, 30 Jul 2024 16:39:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WYLY80jVzz4CgP; Tue, 30 Jul 2024 16:39:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722357580; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=l7d8GGyHtzeQOuvTMFPD54acvqIls35xT7/Nd4Q0TNc=; b=tv5O8X6Y9fFydIyYEfiDWuyCwCedK6O4T04iEd6jIU7gFZ3xCEe+sSijkSB028HnZ35oX2 QaamYpeOz2YSKO04PXmWkgQaUjip/gLE5qqubd+8sfPHVZw+wx8/8X0GYgcvZjdgCdLqhX kE7CN5pu9dgz2GAfVf94VKuMU0mXKy1DKY8BMR5eNH2yJy9+i4ozO4VG1eImhePR3geMBM 4R+lPxtirgwatQ2G31sNwSmKzPrZcPRCE4q3Df/0JW/WVifIlCIgwc9EFppi72FGjhm3oW yd2JTcZ7Cwe602H0qr14CRZWX/h7gqKLiD6TygVdc6jDwhyKdCiV4EI+IvwB1w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722357580; a=rsa-sha256; cv=none; b=RgppzgiF8BRfAfVchQOseGawa/tfo02B5tsUQHd9L7CnXdgSwem9Z0YQ4GaftheqFlsbAF ZEC27qSWPPmmIxuvjhu/EFgkyXoKLZczx3S19NVanibaMveaZ3k4FwNtwSOWkeRch1xd/d gY0ltKUMkyLjMPRjhMuz+1adHvmQPE3BwgZANt2Y5S3MKsEp9sSvIyX1Vhit4SygU66kvS tCIQJo2IYyB2gtVDW4DVIB6lDuqWtLVvVHAfWrAz/yvjE7HryNzOUHkhorM88famLluvVu XM8CQSeIoohPsX+XQYzuSk5COAKEKJxA5DnpxhyaVC3MhUMl9/+zGAM9Ez0Q2A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722357580; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=l7d8GGyHtzeQOuvTMFPD54acvqIls35xT7/Nd4Q0TNc=; b=CN/Fff9h7oyYgM3xx7+ZQ+Ul+Tm8dGDCl8BEXoDnOK3lxS2+68SRqCbWkqDa/XE+y09AF5 v7MSZm4ND//LiFHWzB9UwwJyc1+5xkxiSMBo0aWJPpUGBOxBduYr6Q4c2sahh5r0rTqlsK O77JDxcGgCuAN+lmkGW5azGv+JY+HENgEa+ZrNx1IPV496rUYkrOibvZWHCh7BhkEuRef0 dOx6VM9wJjSBtsaAk3DtbdQVM9x6IKjkkveD2CO46GGM1u2xI/EPm4+X62EixMk/9byP3a 0F1c5+ZdQmRe6xbzR391llvBmMPOvGl1db1/afxHky/Xb8cB/splwQpmPNNfXA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WYLY806K0zQ5j; Tue, 30 Jul 2024 16:39:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 46UGddKE051539; Tue, 30 Jul 2024 16:39:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 46UGddNR051536; Tue, 30 Jul 2024 16:39:39 GMT (envelope-from git) Date: Tue, 30 Jul 2024 16:39:39 GMT Message-Id: <202407301639.46UGddNR051536@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kyle Evans Subject: git: 9333e1cbd028 - main - include: ssp: hide ppoll redirect behind __BSD_VISIBLE List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kevans X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9333e1cbd028d9b387709dfce5260db99c09b3d0 Auto-Submitted: auto-generated The branch main has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=9333e1cbd028d9b387709dfce5260db99c09b3d0 commit 9333e1cbd028d9b387709dfce5260db99c09b3d0 Author: Kyle Evans AuthorDate: 2024-07-30 16:34:09 +0000 Commit: Kyle Evans CommitDate: 2024-07-30 16:36:58 +0000 include: ssp: hide ppoll redirect behind __BSD_VISIBLE This mirrors ppoll's visibility in sys/poll.h and fixes a build issue with some _POSIX_C_SOURCE requests due to missing the sigset_t typedef. Reported by: eduardo Sponsored by: Klara, Inc. Sponsored by: Stormshield --- include/ssp/poll.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/ssp/poll.h b/include/ssp/poll.h index 66992009e928..815e73eb46b7 100644 --- a/include/ssp/poll.h +++ b/include/ssp/poll.h @@ -42,7 +42,7 @@ __ssp_redirect_raw_impl(int, poll, poll, return (__ssp_real(poll)(fds, nfds, timeout)); } - +#if __BSD_VISIBLE __ssp_redirect_raw_impl(int, ppoll, ppoll, (struct pollfd fds[], nfds_t nfds, const struct timespec *__restrict timeout, @@ -53,7 +53,7 @@ __ssp_redirect_raw_impl(int, ppoll, ppoll, return (__ssp_real(ppoll)(fds, nfds, timeout, newsigmask)); } - +#endif /* __BSD_VISIBLE */ __END_DECLS #endif /* __SSP_FORTIFY_LEVEL > 0 */