pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/games/level9 Fix for big-endian machines. Patch provi...
details: https://anonhg.NetBSD.org/pkgsrc/rev/3cf83d7c1997
branches: trunk
changeset: 461523:3cf83d7c1997
user: dillo <dillo%pkgsrc.org@localhost>
date: Wed Sep 17 14:13:17 2003 +0000
description:
Fix for big-endian machines. Patch provided by Lloyd Parkes in PR 22829.
diffstat:
games/level9/distinfo | 3 +-
games/level9/patches/patch-aa | 50 +++++++++++++++++++++++++++++++++++++++++++
2 files changed, 52 insertions(+), 1 deletions(-)
diffs (64 lines):
diff -r 746d404bd2d5 -r 3cf83d7c1997 games/level9/distinfo
--- a/games/level9/distinfo Wed Sep 17 12:08:12 2003 +0000
+++ b/games/level9/distinfo Wed Sep 17 14:13:17 2003 +0000
@@ -1,4 +1,5 @@
-$NetBSD: distinfo,v 1.2 2003/08/26 23:39:27 dillo Exp $
+$NetBSD: distinfo,v 1.3 2003/09/17 14:13:17 dillo Exp $
SHA1 (Level9_3.0_Source.zip) = f50d0712c3ae9c3ff98bb1806bd92df50d8feec7
Size (Level9_3.0_Source.zip) = 202924 bytes
+SHA1 (patch-aa) = 2267bf7782092339fa788b9a76f03e5cd6eecf9c
diff -r 746d404bd2d5 -r 3cf83d7c1997 games/level9/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/level9/patches/patch-aa Wed Sep 17 14:13:17 2003 +0000
@@ -0,0 +1,50 @@
+$NetBSD: patch-aa,v 1.1 2003/09/17 14:13:19 dillo Exp $
+
+--- unix-curses.c.orig Wed Sep 17 20:53:54 2003
++++ unix-curses.c Wed Sep 17 20:54:37 2003
+@@ -10,11 +10,6 @@
+ *
+ * A few notes on this port:
+ *
+- * I've modified level9.h to use the LITTLEENDIAN macro -- it assumes this if
+- * you're using DOS or Windows, otherwise it uses the byte sex macros. This
+- * shouldn't hurt a little-endian machine (Intel), but you must undefine
+- * LITTLEENDIAN if you've got a Motorola-type machine.
+- *
+ * If you don't specify a path, level9 Linux will look first in the directory
+ * $LEVEL9DIR, if defined, and then in the current directory.
+ *
+@@ -39,11 +34,6 @@
+ #define FILE_DELIM '/'
+
+ /*
+- * Set this if you are compiling on a little-endian machine (ARM, Intel)
+- */
+-#define LITTLEENDIAN 1
+-
+-/*
+ * Define this as 1 to get the Emacs-type key bindings
+ * Ctrl-A (go to beginning of line)
+ * Ctrl-B (back one character)
+@@ -745,21 +735,6 @@
+ /*
+ * Check byte sex
+ */
+-# if LITTLEENDIAN
+- L9UINT32 test = 0x12345678;
+- char *tcp = (char *) &test;
+-# else
+- L9UINT32 test = 0x78563412;
+- char *tcp = (char *) &test;
+-# endif
+- if ((tcp [0] != 0x78) || (tcp [1] != 0x56) ||
+- (tcp [2] != 0x34) || (tcp [3] != 0x12))
+- {
+- fprintf (stderr, "%s: compiled with the wrong byte sex!\n"
+- " Check the LITTLEENDIAN macro in os/unix-curses.c\n",
+- argv [0]);
+- exit (1);
+- }
+
+ if (argc != 2)
+ {
Home |
Main Index |
Thread Index |
Old Index