$NetBSD: patch-at,v 1.2 2002/05/03 23:14:53 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 + +#if BYTE_ORDER == LITTLE_ENDIAN +#define SWAP 1 +#endif + #ifdef CRAY # undef NETLONG # define NETLONG long