From: Samuel Thibault Date: Sat, 7 Feb 2015 20:45:59 +0000 (+0100) Subject: hurd: fix build with pthread aio X-Git-Tag: glibc-2.22~643 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2049d17a0fe36e07cbd944504fa6c8fe68832bf;p=thirdparty%2Fglibc.git hurd: fix build with pthread aio --- diff --git a/ChangeLog b/ChangeLog index b2a1a091098..331b1dc347a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2015-02-07 Samuel Thibault + + * sysdeps/pthread/aio_misc.c [!AIO_PRIO_DELTA_MAX]: Do not check + priority against unexistent AIO_PRIO_DELTA_MAX. + 2015-02-06 Roland McGrath * sysdeps/arm/sysdep.h [!PROF] [ARCH_HAS_T2 && !PIC] (LDR_GLOBAL): diff --git a/sysdeps/pthread/aio_misc.c b/sysdeps/pthread/aio_misc.c index 9b7227d689e..5d2b81e4797 100644 --- a/sysdeps/pthread/aio_misc.c +++ b/sysdeps/pthread/aio_misc.c @@ -311,7 +311,10 @@ __aio_enqueue_request (aiocb_union *aiocbp, int operation) if (operation == LIO_SYNC || operation == LIO_DSYNC) aiocbp->aiocb.aio_reqprio = 0; else if (aiocbp->aiocb.aio_reqprio < 0 - || aiocbp->aiocb.aio_reqprio > AIO_PRIO_DELTA_MAX) +#ifdef AIO_PRIO_DELTA_MAX + || aiocbp->aiocb.aio_reqprio > AIO_PRIO_DELTA_MAX +#endif + ) { /* Invalid priority value. */ __set_errno (EINVAL);