openbsd-ports/games/openttd/patches/patch-endian_check_c
mk 0c2e36ef7c Long overdue update of openttd to v. 0.5.2.
Diff from Jeff Quast, tweaked by jasper@, thanks a lot to both of you.

Tested a lot by myself, and I think niallo@ and jasper@ too.
2007-06-11 10:56:28 +00:00

12 lines
445 B
Plaintext

$OpenBSD: patch-endian_check_c,v 1.3 2007/06/11 10:56:28 mk Exp $
--- endian_check.c.orig Tue May 29 14:57:42 2007
+++ endian_check.c Tue May 29 14:58:01 2007
@@ -1,6 +1,7 @@
/* $Id: patch-endian_check_c,v 1.3 2007/06/11 10:56:28 mk Exp $ */
#include <stdio.h>
+#include <string.h>
// This pretty simple file checks if the system is LITTLE_ENDIAN or BIG_ENDIAN
// it does that by putting a 1 and a 0 in an array, and read it out as one