Can't find MQ_PRIO_MAX in include

2013-05-31 Thread Fabrice Boissier
Hello, I'm trying to use some POSIX MQ on Debian. I tried my code on Debian, FreeBSD and Cygwin, and it went well. I encountered a problem on FreeBSD about the maximum priority, then I searched about a fixed maximum, and I found MQ_PRIO_MAX. On FreeBSD and Cygwin it works properly, but on Debian,

Re: Can't find MQ_PRIO_MAX in include

2013-05-31 Thread Neil Williams
On Fri, 31 May 2013 11:21:15 +0200 Fabrice Boissier fabrice.boiss...@gmail.com wrote: macro MQ_PRIO_MAX. How should I found MQ_PRIO_MAX correctly on Debian ? Debian Squeeze (2.6.32-042stab076.8 #1 SMP Tue May 14 20:38:14 MSK 2013 x86_64), So a linux kernel, the match is:

Re: Can't find MQ_PRIO_MAX in include

2013-05-31 Thread Fabrice Boissier
linux-libc-dev and libc6-dev already installed, and the file /usr/include/linux/mqueue.h contains MQ_PRIO_MAX and the struct mq_attr. But the structure mq_attr in /usr/include/linux/mqueue.h is in conflict with the one declared in the /usr/include/mqueue.h (precisely in /usr/include/bits/mqueue.h

Re: Can't find MQ_PRIO_MAX in include

2013-05-31 Thread Ben Hutchings
On Fri, 2013-05-31 at 11:21 +0200, Fabrice Boissier wrote: Hello, I'm trying to use some POSIX MQ on Debian. I tried my code on Debian, FreeBSD and Cygwin, and it went well. I encountered a problem on FreeBSD about the maximum priority, then I searched about a fixed maximum, and I

Re: Can't find MQ_PRIO_MAX in include

2013-05-31 Thread Fabrice Boissier
2013/5/31 Ben Hutchings b...@decadent.org.uk On Fri, 2013-05-31 at 11:21 +0200, Fabrice Boissier wrote: Hello, [...] This is not a support forum for Linux development. But as people have already started giving you silly answers: I previously searched... and nearly nobody uses POSIX MQ