git: 8a139f445dcb - main - x11/libxshmfence: Pacify refined macro warnings

Jung-uk Kim jkim at FreeBSD.org
Thu May 27 05:07:24 UTC 2021


The branch main has been updated by jkim:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8a139f445dcbba03236e7af4cd8091957bc1dba9

commit 8a139f445dcbba03236e7af4cd8091957bc1dba9
Author:     Jung-uk Kim <jkim at FreeBSD.org>
AuthorDate: 2021-05-27 04:37:35 +0000
Commit:     Jung-uk Kim <jkim at 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


More information about the dev-commits-ports-all mailing list