diff options
author | Krzysztof Krzyżaniak <eloy@debian.org> | 2007-04-16 09:40:47 +0000 |
---|---|---|
committer | Krzysztof Krzyżaniak <eloy@debian.org> | 2007-04-16 09:40:47 +0000 |
commit | ad7d77a3d62ea2cc5ba27a3343c3bd9c90cb292d (patch) | |
tree | 1c6a0be2cc4a898a4206604adc8dc14d37c505d4 /src/network_writev.c | |
parent | 389a1e59d6003217bbb158f027bb31a6474cedf4 (diff) | |
download | lighttpd-ad7d77a3d62ea2cc5ba27a3343c3bd9c90cb292d.tar.gz |
new upstream version
Diffstat (limited to 'src/network_writev.c')
-rw-r--r-- | src/network_writev.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/network_writev.c b/src/network_writev.c index 55336f0..4c2684f 100644 --- a/src/network_writev.c +++ b/src/network_writev.c @@ -55,7 +55,11 @@ 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) || defined(__DragonFly__) /* FreeBSD 4.x */ +#elif (defined(__FreeBSD__) && __FreeBSD_version < 500000) || defined(__DragonFly__) || defined(__APPLE__) + /* - FreeBSD 4.x + * - MacOS X 10.3.x + * (covered in -DKERNEL) + * */ 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" |