* rt/tst-mqueue3.c (do_test): Cope with kernel without mq support.
This commit is contained in:
Ulrich Drepper 2004-04-16 22:28:50 +00:00
parent b575c52b86
commit edb4d496a8
3 changed files with 12 additions and 0 deletions

View File

@ -1,5 +1,7 @@
2004-04-16 Ulrich Drepper <drepper@redhat.com>
* rt/tst-mqueue3.c (do_test): Cope with kernel without mq support.
* sysdeps/ieee754/bits/nan.h (__nan_union): Add __attribute_used__
attribute to keep gcc quiet.

View File

@ -1,3 +1,7 @@
2004-04-16 Ulrich Drepper <drepper@redhat.com>
* sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Fix last patch.
2004-04-13 Jakub Jelinek <jakub@redhat.com>
* sysdeps/unix/sysv/linux/mq_notify.c: Shut up GCC warning.

View File

@ -165,6 +165,12 @@ do_test (void)
m = mq_open (mqname, O_CREAT | O_EXCL | O_RDWR, 0600, &attr);
if (m == -1)
{
if (errno == ENOSYS)
{
puts ("not implemented");
return 0;
}
puts ("mq_open failed");
return 1;
}