Hello Jelmer,
On Mon, 2012-01-23 at 15:19 +0100, Jelmer Vernooij wrote:
> Hi Svante,
>
> > The following tiny patch below enables a successful build of tdb for
> > GNU/Hurd. Since IOV_MAX is not defined for Hurd there is no reason to
> > check it's value.
> Thanks for the patch.
>
> I don't really understand it though. This is code that deals with the
> case where IOV_MAX is not defined (as is the case for hurd); it doesn't
> check for the value of IOV_MAX, it defines it.
>
> Can you elaborate on why this is necessary?
If IOV_MAX is not defined, the build fails with an error. The proposed
change prevents that check so that IOV_MAX remains undefined.
Complete function below:
#if !defined IOV_MAX && !defined __GNU__
# 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
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]