games/slump: Jettison byteswap/endian hacks

- Make the OSVERSION conditionals simpler
This commit is contained in:
Muhammad Moinur Rahman 2023-12-31 05:25:09 +01:00
parent e3586087ed
commit afcde63b90
2 changed files with 1 additions and 16 deletions

View file

@ -20,7 +20,7 @@ OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1302505
CFLAGS+= -Wno-error=int-conversion
.endif

View file

@ -1,15 +0,0 @@
--- ./dump.c.orig Sun May 29 23:48:57 2005
+++ ./dump.c Mon Oct 9 23:53:07 2006
@@ -36,6 +36,12 @@
#include <assert.h>
#include "slump.h"
+#include <machine/endian.h>
+
+#if BYTE_ORDER == BIG_ENDIAN
+#define ENDIAN_BIG
+#endif
+
/* Global variables */
extern int current_level_number;