blob: 6bf78a937525084ed2ea2f1a00f3b2e9de0f5f62 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
$NetBSD: patch-ac,v 1.1 2007/02/19 21:31:34 joerg Exp $
--- src/network_writev.c.orig 2006-10-07 17:25:51.000000000 +0000
+++ src/network_writev.c
@@ -55,7 +55,7 @@ int network_write_chunkqueue_writev(serv
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"
|