$NetBSD: patch-ab,v 1.1 2005/12/08 17:11:58 joerg Exp $ --- port.h.orig 2005-12-08 17:07:17.000000000 +0000 +++ port.h @@ -1,6 +1,6 @@ /* port.h - portability defines */ -#if defined(__FreeBSD__) +#if defined(__FreeBSD__) || defined(__DragonFly__) # define OS_FreeBSD # define ARCH "FreeBSD" #elif defined(__OpenBSD__) @@ -39,7 +39,7 @@ # define HAVE_INT64T # ifdef SO_ACCEPTFILTER # define HAVE_ACCEPT_FILTERS -# if ( __FreeBSD_version >= 411000 ) +# if ( defined(__FreeBSD_version) && __FreeBSD_version >= 411000 ) # define ACCEPT_FILTER_NAME "httpready" # else # define ACCEPT_FILTER_NAME "dataready"