[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Can't find MQ_PRIO_MAX in include



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 that is included by /usr/include/mqueue.h)

Either MQ_PRIO_MAX and some other constants should be defined in limits.h, or struct mq_attr shouldn't be defined twice.


2013/5/31 Neil Williams <codehelp@debian.org>
On Fri, 31 May 2013 11:21:15 +0200
Fabrice Boissier <fabrice.boissier@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:

/usr/include/linux/mqueue.h:#define MQ_PRIO_MAX         32768

$ dpkg -S /usr/include/linux/mqueue.h
linux-libc-dev:amd64: /usr/include/linux/mqueue.h

Ensure linux-libc-dev is installed and look for the .h in the linux/
directory.

http://packages.debian.org/search?searchon=contents&keywords=mqueue.h&mode=path&suite=stable&arch=any

--


Neil Williams
=============
http://www.linux.codehelp.co.uk/




--
Fabrice BOISSIER // Metalman
Epita2012 - SRS
root SRS (Fév 2011 - Fév 2012)

Reply to: