From f8d54c857426f112d133da0af9add8750b5f8db5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20R=C3=BCckert?= Date: Tue, 20 Feb 2007 17:08:32 +0000 Subject: [PATCH] =?UTF-8?q?-=20properly=20ifdef=20for=20dragonflybsd.=20th?= =?UTF-8?q?is=20should=20be=20the=20last=20missing=20chunk=20=20=20patch?= =?UTF-8?q?=20by=20J=C3=B6rg=20Sonnenberger?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1676 152afb58-edef-0310-8abb-c4023f1b3aa9 --- src/network_writev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network_writev.c b/src/network_writev.c index d628f751..55336f04 100644 --- a/src/network_writev.c +++ b/src/network_writev.c @@ -55,7 +55,7 @@ int network_write_chunkqueue_writev(server *srv, connection *con, int fd, chunkq const size_t max_chunks = MAX_IOVEC; #elif defined(UIO_MAXIOV) /* Linux x86 (glibc-2.2.5-233) */ const size_t max_chunks = UIO_MAXIOV; -#elif (defined(__FreeBSD__) && __FreeBSD_version < 500000) /* FreeBSD 4.x */ +#elif (defined(__FreeBSD__) && __FreeBSD_version < 500000) || defined(__DragonFly__) /* FreeBSD 4.x */ const size_t max_chunks = 1024; /* UIO_MAXIOV value from sys/uio.h */ #else #error "sysconf() doesnt return _SC_IOV_MAX ..., check the output of 'man writev' for the EINVAL error and send the output to jan@kneschke.de"