$OpenBSD: patch-util_coding_cc,v 1.1 2012/08/21 00:28:34 jmatthew Exp $

Use the endianness #define from port_posix.h
See http://code.google.com/p/leveldb/issues/detail?id=110

--- util/coding.cc.orig	Thu Aug 16 12:00:57 2012
+++ util/coding.cc	Thu Aug 16 12:01:16 2012
@@ -7,7 +7,7 @@
 namespace leveldb {
 
 void EncodeFixed32(char* buf, uint32_t value) {
-#if __BYTE_ORDER == __LITTLE_ENDIAN
+#if PLATFORM_IS_LITTLE_ENDIAN
   memcpy(buf, &value, sizeof(value));
 #else
   buf[0] = value & 0xff;
@@ -18,7 +18,7 @@ void EncodeFixed32(char* buf, uint32_t value) {
 }
 
 void EncodeFixed64(char* buf, uint64_t value) {
-#if __BYTE_ORDER == __LITTLE_ENDIAN
+#if PLATFORM_IS_LITTLE_ENDIAN
   memcpy(buf, &value, sizeof(value));
 #else
   buf[0] = value & 0xff;
