Skip to content

Commit 8753f18

Browse files
committed
tyrquake: Fix bswap patch.
1 parent 17b1738 commit 8753f18

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

games/tyrquake/distinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ BLAKE2s (tyrquake-0.71.tar.gz) = a3a1030f5b17bfbe6fd3d710d71a0b5b55096f2917f440d
44
SHA512 (tyrquake-0.71.tar.gz) = ecceeecb43866c10c0669b4362ce2eda7a790c502764b3d644566e7637ffbde0548676c9dcea07963db0d91d83c248e3497603c0a3a2e1a12a1418a82c07179a
55
Size (tyrquake-0.71.tar.gz) = 2287864 bytes
66
SHA1 (patch-Makefile) = d34b44cfa4c12cdda4a67dfddccd8e2a9ed1bec2
7-
SHA1 (patch-include_common.h) = e5b3402ff366da2c53fbeedafac83951b4f07ca7
7+
SHA1 (patch-include_common.h) = 80b0c72fd9a220b8999c00bb90c95ea5a4e11cc6

games/tyrquake/patches/patch-include_common.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
$NetBSD: patch-include_common.h,v 1.1 2024/06/06 17:33:14 ktnb Exp $
22

3-
NetBSD has bswap in stdlib which conflicts with upstream's
4-
definitions. Using the upstream definitions causes a conflict
5-
throughout the rest of the program.
3+
Stable NetBSD releases leak bswap which conflicts with upstream's
4+
definition.
65

76
--- include/common.h.orig 2022-09-06 10:23:53.000000000 +0000
87
+++ include/common.h
@@ -11,7 +10,7 @@ throughout the rest of the program.
1110
#include <stdarg.h>
1211
#include <stdio.h>
1312
+#ifdef __NetBSD__
14-
+#include <stdlib.h>
13+
+#include <sys/bswap.h>
1514
+#endif
1615

1716
#include "qtypes.h"

0 commit comments

Comments
 (0)