about summary refs log tree commit diff
path: root/rt/tst-aio3.c
diff options
context:
space:
mode:
Diffstat (limited to 'rt/tst-aio3.c')
-rw-r--r--rt/tst-aio3.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/rt/tst-aio3.c b/rt/tst-aio3.c
index d4f8dc532f..0c0ced4501 100644
--- a/rt/tst-aio3.c
+++ b/rt/tst-aio3.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.
 
    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>
 
 int flag;
 
@@ -66,6 +67,11 @@ do_test (int argc, char *argv[])
 
   if (lio_listio (LIO_NOWAIT, arr, 1, NULL) < 0)
     {
+      if (errno == ENOSYS)
+	{
+	  puts ("no aio support in this configuration");
+	  return 0;
+	}
       printf ("lio_listio failed: %m\n");
       return 1;
     }