fixed writev() on FreeBSD 4.x and older (FreeBSD-port: PR103758)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1383 152afb58-edef-0310-8abb-c4023f1b3aa9svn/tags/lighttpd-1.4.13
parent
7a220fceb4
commit
b4778f8e6d
|
@ -55,6 +55,8 @@ 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 */
|
||||
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"
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue