$NetBSD: patch-ae,v 1.2 2002/08/09 01:58:04 dmcmahill Exp $

--- src/Sample.cc.orig	Wed Dec 12 16:36:27 2001
+++ src/Sample.cc
@@ -10,8 +10,8 @@
 #include <math.h>
 #include <string.h>
 #include <errno.h>
-#include <values.h>
-#include <endian.h>
+#include <limits.h>
+#include <machine/endian.h>
 
 #include <X11/Xlib.h>
 #include <Xm/Xm.h>
@@ -116,7 +116,7 @@ Sample::shot ()
 	if (j == 0 || j != length)	// EOF
 	    return false;
 
-#if __BYTE_ORDER == __LITTLE_ENDIAN
+#if BYTE_ORDER == LITTLE_ENDIAN
 	dsp.swapbuffer (buffer, 4 * length);
 #endif
 
