From cb792343074d026b307cc1fdde1a679abaa27a24 Mon Sep 17 00:00:00 2001
From: Tom Lane <tgl@sss.pgh.pa.us>
Date: Thu, 2 Sep 2004 21:03:30 +0000
Subject: [PATCH] Apparently HPUX runs the IA64 in big-endian mode.

---
 src/include/port/hpux.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/include/port/hpux.h b/src/include/port/hpux.h
index a1d5afa3aec..949ae23124a 100644
--- a/src/include/port/hpux.h
+++ b/src/include/port/hpux.h
@@ -16,8 +16,9 @@
 
 #elif defined(__ia64)
 
+/* HPUX runs IA64 in big-endian mode */
 #ifndef			BYTE_ORDER
-#define			BYTE_ORDER		LITTLE_ENDIAN
+#define			BYTE_ORDER		BIG_ENDIAN
 #endif
 
 #else
-- 
GitLab