]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
hurd: fix build with pthread aio
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 7 Feb 2015 20:45:59 +0000 (21:45 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 7 Feb 2015 20:48:32 +0000 (21:48 +0100)
ChangeLog
sysdeps/pthread/aio_misc.c

index b2a1a091098f58c634d508d1cf5dbe0f4b6913ba..331b1dc347aa2f732506e7e12335d350b4e70b4e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-02-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
+
+       * sysdeps/pthread/aio_misc.c [!AIO_PRIO_DELTA_MAX]: Do not check
+       priority against unexistent AIO_PRIO_DELTA_MAX.
+
 2015-02-06  Roland McGrath  <roland@hack.frob.com>
 
        * sysdeps/arm/sysdep.h [!PROF] [ARCH_HAS_T2 && !PIC] (LDR_GLOBAL):
index 9b7227d689e1ab254aa9deac9b11aea081ac6fe1..5d2b81e479772eae00ac3d9e725c468f5d9b855f 100644 (file)
@@ -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);