$NetBSD: patch-ac,v 1.2 2012/12/20 21:33:57 joerg Exp $

--- src/Server/Accept.c.orig	2004-09-16 22:05:58.000000000 +0000
+++ src/Server/Accept.c
@@ -14,9 +14,8 @@
 int tcpwin;
 
 /* memmem */
-#ifndef __linux__
 char *
-memmem(buf,len1,str,len2)
+custom_memmem(buf,len1,str,len2)
 	char *buf;
 	int len1;
 	char *str;
@@ -35,7 +34,6 @@ memmem(buf,len1,str,len2)
 	}
 	return (char *)0; // not found
 }
-#endif
 
 /* Main Accept function, here we handle connections */
 int
@@ -139,7 +137,7 @@ Accept(n)
 	  if ((int)b>ERROR_NULL && (int)b<ERROR_LASTONE)
 		{
 			//screws_logs_error(n,ERROR_REQUEST,""); // XXX log remote IP
-			return;
+			return ERROR_NULL;
 		}
 
 	  /* keep-alive only for HTTP/1.1 */
