aboutsummaryrefslogtreecommitdiff
path: root/rt/tst-aio5.c
diff options
context:
space:
mode:
Diffstat (limited to 'rt/tst-aio5.c')
-rw-r--r--rt/tst-aio5.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/rt/tst-aio5.c b/rt/tst-aio5.c
index 612798a1ec..cc7152ecbd 100644
--- a/rt/tst-aio5.c
+++ b/rt/tst-aio5.c
@@ -1,5 +1,5 @@
/* Test for completion thread handling.
- Copyright (C) 2000 Free Software Foundation, Inc.
+ Copyright (C) 2000,02 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -22,6 +22,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
+#include <errno.h>
/* We might need a bit longer timeout. */
#define TIMEOUT 10 /* sec */
@@ -96,6 +97,11 @@ do_test (int argc, char *argv[])
/* First use aio_write. */
if (aio_write (arr[0]) < 0)
{
+ if (errno == ENOSYS)
+ {
+ puts ("no aio support in this configuration");
+ return 0;
+ }
printf ("aio_write failed: %m\n");
return 1;
}