From owner-dev-commits-ports-main@freebsd.org Thu May 27 05:07:24 2021 Return-Path: Delivered-To: dev-commits-ports-main@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id CE5236321FB; Thu, 27 May 2021 05:07:24 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FrG5m5V4yz3p2J; Thu, 27 May 2021 05:07:24 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 9F8271E1A9; Thu, 27 May 2021 05:07:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 14R57Ob2032887; Thu, 27 May 2021 05:07:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 14R57Ow8032886; Thu, 27 May 2021 05:07:24 GMT (envelope-from git) Date: Thu, 27 May 2021 05:07:24 GMT Message-Id: <202105270507.14R57Ow8032886@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Jung-uk Kim Subject: git: 8a139f445dcb - main - x11/libxshmfence: Pacify refined macro warnings MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jkim X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8a139f445dcbba03236e7af4cd8091957bc1dba9 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-main@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commits to the main branch of the FreeBSD ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 May 2021 05:07:24 -0000 The branch main has been updated by jkim: URL: https://cgit.FreeBSD.org/ports/commit/?id=8a139f445dcbba03236e7af4cd8091957bc1dba9 commit 8a139f445dcbba03236e7af4cd8091957bc1dba9 Author: Jung-uk Kim AuthorDate: 2021-05-27 04:37:35 +0000 Commit: Jung-uk Kim CommitDate: 2021-05-27 04:37:35 +0000 x11/libxshmfence: Pacify refined macro warnings These macros should be defined in sys/mman.h. Actually, it was an old Linux hack to work around header file inconsistency. For example, https://manpages.ubuntu.com/manpages/bionic/man2/memfd_create.2.html https://manpages.ubuntu.com/manpages/focal/man2/memfd_create.2.html No functional change expected. --- x11/libxshmfence/files/patch-src__xshmfence_alloc.c | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/x11/libxshmfence/files/patch-src__xshmfence_alloc.c b/x11/libxshmfence/files/patch-src__xshmfence_alloc.c index b6e98334e981..eb60dfd000dc 100644 --- a/x11/libxshmfence/files/patch-src__xshmfence_alloc.c +++ b/x11/libxshmfence/files/patch-src__xshmfence_alloc.c @@ -1,6 +1,20 @@ ---- src/xshmfence_alloc.c.orig 2015-03-04 15:28:23 UTC +--- src/xshmfence_alloc.c.orig 2018-02-26 17:26:59 UTC +++ src/xshmfence_alloc.c -@@ -73,13 +73,21 @@ xshmfence_alloc_shm(void) +@@ -48,9 +48,13 @@ static int memfd_create(const char *name, + #include + #else + /* flags for memfd_create(2) (unsigned int) */ ++#ifndef MFD_CLOEXEC + #define MFD_CLOEXEC 0x0001U ++#endif ++#ifndef MFD_ALLOW_SEALING + #define MFD_ALLOW_SEALING 0x0002U + #endif ++#endif + + #endif + +@@ -73,13 +77,21 @@ xshmfence_alloc_shm(void) fd = memfd_create("xshmfence", MFD_CLOEXEC|MFD_ALLOW_SEALING); if (fd < 0) #endif