aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/pthread
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2015-02-07 21:45:59 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2015-02-07 21:48:32 +0100
commite2049d17a0fe36e07cbd944504fa6c8fe68832bf (patch)
tree2969cd11cfed3efc27e62d8787c5e3fa54e28c80 /sysdeps/pthread
parentf8d1bb4c25849b528b9771cb5834b0cd17450ae3 (diff)
downloadglibc-e2049d17a0fe36e07cbd944504fa6c8fe68832bf.zip
glibc-e2049d17a0fe36e07cbd944504fa6c8fe68832bf.tar.gz
glibc-e2049d17a0fe36e07cbd944504fa6c8fe68832bf.tar.bz2
hurd: fix build with pthread aio
Diffstat (limited to 'sysdeps/pthread')
-rw-r--r--sysdeps/pthread/aio_misc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sysdeps/pthread/aio_misc.c b/sysdeps/pthread/aio_misc.c
index 9b7227d..5d2b81e 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);