Date: Thu, 27 May 2021 05:07:24 GMT From: Jung-uk Kim <jkim@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 8a139f445dcb - main - x11/libxshmfence: Pacify refined macro warnings Message-ID: <202105270507.14R57Ow8032886@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by jkim: URL: https://cgit.FreeBSD.org/ports/commit/?id=8a139f445dcbba03236e7af4cd8091957bc1dba9 commit 8a139f445dcbba03236e7af4cd8091957bc1dba9 Author: Jung-uk Kim <jkim@FreeBSD.org> AuthorDate: 2021-05-27 04:37:35 +0000 Commit: Jung-uk Kim <jkim@FreeBSD.org> 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 <sys/memfd.h> + #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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202105270507.14R57Ow8032886>