Changeset 1383

Show
Ignore:
Timestamp:
10/07/2006 05:27:29 PM (2 years ago)
Author:
jan
Message:

fixed writev() on FreeBSD 4.x and older (FreeBSD-port: PR103758)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/lighttpd-1.4.x/src/network_writev.c

    r1371 r1383  
    5656#elif defined(UIO_MAXIOV) /* Linux x86 (glibc-2.2.5-233) */ 
    5757                        const size_t max_chunks = UIO_MAXIOV; 
     58#elif (defined(__FreeBSD__) && __FreeBSD_version < 500000) /* FreeBSD 4.x */ 
     59                        const size_t max_chunks = 1024; /* UIO_MAXIOV value from sys/uio.h */ 
    5860#else 
    5961#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"