From bccef8251654f52751ad65e9906323a73c47fdb4 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 8 Jun 2009 09:01:45 +0200 Subject: replace: add fallback define for IOV_MAX This hopefully fixes the build on IRIX. metze --- lib/replace/system/network.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'lib') 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 { -- cgit