This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
glibc 2.18 rt/tst-mqueue4.c compilation error
- From: Olivier Langlois <olivier at olivierlanglois dot net>
- To: libc-alpha at sourceware dot org
- Date: Tue, 17 Sep 2013 00:09:46 -0400
- Subject: glibc 2.18 rt/tst-mqueue4.c compilation error
- Authentication-results: sourceware.org; auth=none
Hi,
I do not know what has happened since the first time that I have
compiled 2.18 and today but I got this new compiler error while
executing the tests. Sorry I didn't save the compiler output but
basically, it was complaining that the function was taking 2 or 4
arguments. man page info confirm this as well. Here is what I have
changed to fix the error:
--- glibc-2.18/rt/tst-mqueue4.c.orig 2013-09-16 17:02:26.279456689 -0400
+++ glibc-2.18/rt/tst-mqueue4.c 2013-09-16 17:02:50.838608572 -0400
@@ -171,14 +171,14 @@ do_test (void)
result = 1;
}
- q2 = mq_open (name, O_RDONLY, 0600);
+ q2 = mq_open (name, O_RDONLY, 0600, NULL);
if (q2 == (mqd_t) -1)
{
printf ("mq_open without O_CREAT failed with %m\n");
result = 1;
}
- mqd_t q3 = mq_open (name, O_RDONLY, 0600);
+ mqd_t q3 = mq_open (name, O_RDONLY, 0600, NULL);
if (q3 == (mqd_t) -1)
{
printf ("mq_open without O_CREAT failed with %m\n");