executables with libm when truly necessary. Add sparc64 and powerpc support. Determine endianness at compile time rather than at configuration.
16 lines
333 B
Text
16 lines
333 B
Text
$NetBSD: patch-aq,v 1.2 2001/04/19 00:56:34 jtb Exp $
|
|
|
|
--- mfhdf/libsrc/array.c.orig Thu Apr 19 00:27:02 2001
|
|
+++ mfhdf/libsrc/array.c
|
|
@@ -6,6 +6,11 @@
|
|
|
|
#include <string.h>
|
|
+#include <sys/endian.h>
|
|
#include "local_nc.h"
|
|
#include "alloc.h"
|
|
+
|
|
+#if BYTE_ORDER == LITTLE_ENDIAN
|
|
+#define SWAP 1
|
|
+#endif
|
|
|
|
#ifdef NO_MEM_FUNCTS
|