pkgsrc/devel/hdf/patches/patch-aq
jtb 11d367eaa0 Add -DNETLONG=int to CPPFLAGS instead of using a patch. Only link
executables with libm when truly necessary.  Add sparc64 and powerpc support.
Determine endianness at compile time rather than at configuration.
2001-04-19 00:56:33 +00:00

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