about summary refs log tree commit diff
path: root/rt/tst-aio64.c
diff options
context:
space:
mode:
Diffstat (limited to 'rt/tst-aio64.c')
-rw-r--r--rt/tst-aio64.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/rt/tst-aio64.c b/rt/tst-aio64.c
index 14552c9aec..4663d75562 100644
--- a/rt/tst-aio64.c
+++ b/rt/tst-aio64.c
@@ -1,5 +1,5 @@
 /* Tests for 64bit AIO in librt.
-   Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1998,99,2000,02 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
 
@@ -163,7 +163,11 @@ do_test (int argc, char *argv[])
 
   /* First a simple test.  */
   for (cnt = 10; cnt > 0; )
-    aio_write64 (cbp[--cnt]);
+    if (aio_write64 (cbp[--cnt]) < 0 && errno == ENOSYS)
+      {
+	error (0, 0, "no aio support in this configuration");
+	return 0;
+      }
   /* Wait 'til the results are there.  */
   result |= do_wait (cbp, 10, 0);
   /* Test this.  */