$NetBSD: patch-at,v 1.1 2001/04/19 00:56:34 jtb Exp $

--- mfhdf/libsrc/xdrposix.c.orig	Thu Apr 19 00:27:10 2001
+++ mfhdf/libsrc/xdrposix.c
@@ -20,6 +20,13 @@
  * x_getlong() and x_putlong(), so, on that platform, it doesn't matter if
  * the following isn't 32-bits):
  */
+
+#include <sys/endian.h>
+
+#if BYTE_ORDER == LITTLE_ENDIAN
+#define SWAP 1
+#endif
+
 #ifdef CRAY
 #   undef  NETLONG
 #   define NETLONG  long
@@ -58,7 +65,7 @@
 #include "local_nc.h" /* prototypes for NCadvis, nc_error */
 		      /* also obtains <stdio.h>, <rpc/types.h>, &
 		       * <rpc/xdr.h> */
-#include "netcdf.h" /* NC_ */
+#include "netcdf_hdf.h" /* NC_ */
 #include "mfhdf.h"
 
 #if !(defined DOS_FS || defined(macintosh) || defined (SYMANTEC_C))
