View | Details | Raw Unified | Return to bug 239630
Collapse All | Expand All

(-)b/x11/libxshmfence/Makefile (+1 lines)
Lines 2-7 Link Here
2
2
3
PORTNAME=	libxshmfence
3
PORTNAME=	libxshmfence
4
PORTVERSION=	1.3
4
PORTVERSION=	1.3
5
PORTREVISION=	1
5
CATEGORIES=	x11
6
CATEGORIES=	x11
6
7
7
MAINTAINER=	x11@FreeBSD.org
8
MAINTAINER=	x11@FreeBSD.org
(-)b/x11/libxshmfence/files/patch-src__xshmfence_alloc.c (-1 / +11 lines)
Lines 1-6 Link Here
1
--- src/xshmfence_alloc.c.orig	2015-03-04 15:28:23 UTC
1
--- src/xshmfence_alloc.c.orig	2015-03-04 15:28:23 UTC
2
+++ src/xshmfence_alloc.c
2
+++ src/xshmfence_alloc.c
3
@@ -79,7 +79,11 @@ xshmfence_alloc_shm(void)
3
@@ -73,13 +73,21 @@ xshmfence_alloc_shm(void)
4
 	fd = memfd_create("xshmfence", MFD_CLOEXEC|MFD_ALLOW_SEALING);
5
 	if (fd < 0)
6
 #endif
7
+#ifdef SHM_ANON
8
+	fd = shm_open(SHM_ANON, O_RDWR|O_CLOEXEC, 0600);
9
+	if (fd < 0)
10
+#endif
11
 	{
12
 #ifdef O_TMPFILE
13
 		fd = open(SHMDIR, O_TMPFILE|O_RDWR|O_CLOEXEC|O_EXCL, 0666);
4
 		if (fd < 0)
14
 		if (fd < 0)
5
 #endif
15
 #endif
6
 		{
16
 		{

Return to bug 239630