Am 20.02.2007 um 17:04 schrieb Stephen Deasey:

If BSD etc. doesn't, we'll have to make sure we're handling that error
correctly.

For the time being, I added this one into the nsd/nsd.h

/*
 * This baroque pre-processor fiddling should be eventually
 * replaced with a decent configure option and/or logic.
 */

#ifndef UIO_MAXIOV
  #if defined(__FreeBSD__) || defined(__APPLE__) || defined(__NetBSD__)
    #define UIO_MAXIOV 1024
  #elif defined(__sun)
    #ifndef IOV_MAX
      #define UIO_MAXIOV 16
    #else
      #define UIO_MAXIOV IOV_MAX
    #endif
  #elif defined(IOV_MAX)
      #define UIO_MAXIOV IOV_MAX
  #else
    #error "neither UIO_MAXIOV nor IOV_MAX are defined"
  #endif
#endif



Reply via email to