glibc 2.18 rt/tst-mqueue4.c compilation error
Olivier Langlois
olivier@olivierlanglois.net
Tue Sep 17 04:09:00 GMT 2013
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");
More information about the Libc-alpha
mailing list