2007-06-11 10:56:28 +00:00
|
|
|
$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
|
2006-06-01 08:06:45 +00:00
|
|
|
@@ -1,6 +1,7 @@
|
2007-06-11 10:56:28 +00:00
|
|
|
/* $Id: patch-endian_check_c,v 1.3 2007/06/11 10:56:28 mk Exp $ */
|
2006-06-01 08:06:45 +00:00
|
|
|
|
|
|
|
#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
|