summaryrefslogtreecommitdiff
path: root/rt/tst-aio2.c
diff options
context:
space:
mode:
Diffstat (limited to 'rt/tst-aio2.c')
-rw-r--r--rt/tst-aio2.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/rt/tst-aio2.c b/rt/tst-aio2.c
index 21e516984b..1ff92ce93b 100644
--- a/rt/tst-aio2.c
+++ b/rt/tst-aio2.c
@@ -1,5 +1,5 @@
/* Test for notification mechanism in lio_listio.
- Copyright (C) 2000 Free Software Foundation, Inc.
+ Copyright (C) 2000,02 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 2000.
@@ -23,6 +23,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
+#include <errno.h>
int flag;
@@ -67,6 +68,11 @@ do_test (int argc, char *argv[])
if (lio_listio (LIO_WAIT, arr, 1, NULL) < 0)
{
+ if (errno == ENOSYS)
+ {
+ puts ("no aio support in this configuration");
+ return 0;
+ }
printf ("lio_listio failed: %m\n");
return 1;
}