aboutsummaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2021-05-27 04:37:35 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2021-05-27 04:37:35 +0000
commit8a139f445dcbba03236e7af4cd8091957bc1dba9 (patch)
tree155cc36b4ebf5be5d63929b4e0a786537caccf36 /x11
parent939745d4c3901027f4f2eb6ed327eaed4def9e45 (diff)
downloadports-8a139f445dcbba03236e7af4cd8091957bc1dba9.tar.gz
ports-8a139f445dcbba03236e7af4cd8091957bc1dba9.zip
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.
Diffstat (limited to 'x11')
-rw-r--r--x11/libxshmfence/files/patch-src__xshmfence_alloc.c18
1 files 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