Files
ports/x11/virtualgl/files/patch-server__fakerconfig.cpp
T
Steve Wills 537e0bbec5 x11/virtualgl: fix build for recent version of mesa
PR:		250818
Submitted by:	Thibault Payet <monwarez@mailoo.org>
Approved by:	maintainer timeout (davidjx8p@gmail.com, >2 months)
2021-01-17 19:35:20 +00:00

12 lines
432 B
C++

--- server/fakerconfig.cpp.orig 2019-10-20 21:29:00 UTC
+++ server/fakerconfig.cpp
@@ -97,7 +97,7 @@ FakerConfig *fconfig_getinstance(void)
if((addr = shmat(fconfig_shmid, 0, 0)) == (void *)-1) THROW_UNIX();
if(!addr)
THROW("Could not attach to config structure in shared memory");
- #ifdef linux
+ #if defined(linux) || defined(__FreeBSD__)
shmctl(fconfig_shmid, IPC_RMID, 0);
#endif
char *env = NULL;