--On Thursday, January 9, 2003 5:05 AM +0000 Colm MacCarthaigh <[EMAIL PROTECTED]> wrote:

--- /src/info-systems/httpd-2.0.43/server/listen.c.orig	Tue Jan  7
16:13:53 2003 +++ /src/info-systems/httpd-2.0.43/server/listen.c
	Tue Jan  7 16:16:09 2003 @@ -184,7 +184,13 @@

 #if APR_HAS_SO_ACCEPTFILTER
 #ifndef ACCEPT_FILTER_NAME
+#define ACCEPT_FILTER_NAME "httpready"
+#ifdef __FreeBSD_version
+#if __FreeBSD_version < 411000 /* httpready broken before 4.1.1 */
+#undef ACCEPT_FILTER_NAME
 #define ACCEPT_FILTER_NAME "dataready"
+#endif
+#endif
 #endif
     apr_socket_accept_filter(s, ACCEPT_FILTER_NAME, "");
 #endif
Wouldn't this make more sense as an autoconf test? I don't really have access to a FreeBSD machine, but certainly this seems like something we could check/define at configure-time rather than cluttering up the code with more #define's. -- justin

Reply via email to