$NetBSD: patch-ae,v 1.3 2004/05/03 17:00:42 minskim Exp $

--- src/Sample.cc.orig	2001-12-12 15:36:27.000000000 -0600
+++ src/Sample.cc
@@ -10,8 +10,12 @@
 #include <math.h>
 #include <string.h>
 #include <errno.h>
-#include <values.h>
+#include <limits.h>
+#ifdef __linux__
 #include <endian.h>
+#else
+#include <machine/endian.h>
+#endif
 
 #include <X11/Xlib.h>
 #include <Xm/Xm.h>
@@ -116,7 +120,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
 
