summaryrefslogtreecommitdiff
path: root/parallel/mpi-ch/patches/patch-aa
blob: 9e3bc0a36870d21267324fea5e0a06b5041fc12a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-aa,v 1.4 2003/03/27 21:07:05 jschauma Exp $

--- configure.orig	Mon Mar 24 16:28:18 2003
+++ configure	Mon Mar 24 16:29:00 2003
@@ -9779,14 +9779,9 @@
     cat > conftest.c <<EOF
 #include "confdefs.h"
 main () {
-  /* Are we little or big endian?  From Harbison&Steele.  */
-  union
-  {
-    long l;
-    char c[sizeof (long)];
-  } u;
-  u.l = 1;
-  exit (u.c[sizeof (long) - 1] == 1);
+	int     indian = 1;
+	
+	exit(*(char *)&indian));
 }
 EOF
         if test -n "$compile" ; then