diff --git a/include/limits.h b/include/limits.h index 3953aea53533895e4ac4f51e8af40d68b1bb4541..4d0410a0e08c9d324b8ef83a88c250c64cefb1bc 100644 --- a/include/limits.h +++ b/include/limits.h @@ -32,6 +32,7 @@ #define SEM_VALUE_MAX 0x7fffffff #define SEM_NSEMS_MAX 256 #define DELAYTIMER_MAX 0x7fffffff +#define MQ_PRIO_MAX 32768 /* Arbitrary numbers... */ diff --git a/src/conf/sysconf.c b/src/conf/sysconf.c index 1c0ae88df21e8431a4b442f604f9e4950b5131de..1557aa540cd91ad0aef344f7694d6b501d4afcbe 100644 --- a/src/conf/sysconf.c +++ b/src/conf/sysconf.c @@ -36,7 +36,7 @@ long sysconf(int name) [_SC_AIO_PRIO_DELTA_MAX] = 0, /* ?? */ [_SC_DELAYTIMER_MAX] = _POSIX_DELAYTIMER_MAX, [_SC_MQ_OPEN_MAX] = -1, - [_SC_MQ_PRIO_MAX] = _POSIX_MQ_PRIO_MAX, + [_SC_MQ_PRIO_MAX] = MQ_PRIO_MAX, [_SC_VERSION] = VER, [_SC_PAGE_SIZE] = PAGE_SIZE, [_SC_RTSIG_MAX] = 63, /* ?? */