diff options
-rw-r--r-- | lib/replace/system/network.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/replace/system/network.h b/lib/replace/system/network.h index 6add99c0db..c8364101a9 100644 --- a/lib/replace/system/network.h +++ b/lib/replace/system/network.h @@ -307,6 +307,22 @@ typedef unsigned short int sa_family_t; #endif #endif +#ifndef IOV_MAX +# ifdef UIO_MAXIOV +# define IOV_MAX UIO_MAXIOV +# else +# ifdef __sgi + /* + * IRIX 6.5 has sysconf(_SC_IOV_MAX) + * which might return 512 or bigger + */ +# define IOV_MAX 512 +# else +# error IOV_MAX and UIO_MAXIOV undefined +# endif +# endif +#endif + #ifndef HAVE_STRUCT_ADDRINFO #define HAVE_STRUCT_ADDRINFO struct addrinfo { |