Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Nov 2021 20:09:19 GMT
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 2738855e7430 - main - games/prboom: fix build in 14
Message-ID:  <202111222009.1AMK9JeQ047460@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by amdmi3:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2738855e74308deada2938f9929f85e524f41922

commit 2738855e74308deada2938f9929f85e524f41922
Author:     Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2021-11-19 11:05:41 +0000
Commit:     Dmitry Marakasov <amdmi3@FreeBSD.org>
CommitDate: 2021-11-22 20:07:41 +0000

    games/prboom: fix build in 14
    
    Fix bompilation problem on FreeBSD 14:
    
        i_system.c:444:7: error: unknown type name 'cpu_set_t'; did you mean 'cpusetid_t'?
              cpu_set_t set;
              ^~~~~~~~~
    
    Approved by:    portmgr blanket
---
 games/prboom/files/patch-src_SDL_i__system.c | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/games/prboom/files/patch-src_SDL_i__system.c b/games/prboom/files/patch-src_SDL_i__system.c
new file mode 100644
index 000000000000..4ecd359deef2
--- /dev/null
+++ b/games/prboom/files/patch-src_SDL_i__system.c
@@ -0,0 +1,19 @@
+--- src/SDL/i_system.c.orig	2008-11-09 18:19:11 UTC
++++ src/SDL/i_system.c
+@@ -72,6 +72,7 @@
+ #include <fcntl.h>
+ #include <sys/stat.h>
+ #include <errno.h>
++#include <sys/cpuset.h>
+ 
+ #ifndef PRBOOM_SERVER
+ #include "m_argv.h"
+@@ -441,7 +442,7 @@ void I_SetAffinityMask(void)
+     // POSIX version:
+     int i;
+     {
+-      cpu_set_t set;
++      cpuset_t set;
+ 
+       CPU_ZERO(&set);
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202111222009.1AMK9JeQ047460>