$NetBSD: patch-ac,v 1.4 1998/11/28 20:59:58 frueauf Exp $

--- backend/snapscan.c-orig	Thu Oct 29 08:02:29 1998
+++ backend/snapscan.c	Sat Nov 28 12:16:28 1998
@@ -55,7 +55,6 @@
 #include <sys/time.h>
 #include <sys/types.h>
 #include <sys/stat.h>
-#include <values.h>
 #include <limits.h>
 #include <fcntl.h>
 #include <unistd.h>
@@ -3150,7 +3149,7 @@
 
 	{
 	  int result = write (pss->tfd, other_buf, pss->read_bytes);
-	  if (result < 0 || result == MAXINT)
+	  if (result < 0 || result == INT_MAX)
 	    {
 	      DBG (DL_MAJOR_ERROR, "%s: write of test data to file failed.\n",
 		   me);
