$NetBSD: patch-ab,v 1.1.2.1 2007/02/20 14:26:59 salo Exp $

--- src/network_freebsd_sendfile.c.orig	2006-10-04 13:29:17.000000000 +0000
+++ src/network_freebsd_sendfile.c
@@ -25,7 +25,7 @@
 
 
 #ifndef UIO_MAXIOV
-# ifdef __FreeBSD__
+# if defined(__FreeBSD__) || defined(__DragonFly__)
 /* FreeBSD 4.7, 4.9 defined it in sys/uio.h only if _KERNEL is specified */
 #  define UIO_MAXIOV 1024
 # endif
