about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-06-07 15:05:04 -0400
committerRich Felker <dalias@aerifal.cx>2011-06-07 15:05:04 -0400
commit2b0cedac8d03bbeb1bd0e1d77fab775b1d9f3e25 (patch)
tree49b916e48588dd7c52491860b9dbef1c69a92a23
parent0b6b43ed3fd26cf8cd926193be5c9fd831b534c4 (diff)
downloadmusl-2b0cedac8d03bbeb1bd0e1d77fab775b1d9f3e25.tar.gz
musl-2b0cedac8d03bbeb1bd0e1d77fab775b1d9f3e25.tar.xz
musl-2b0cedac8d03bbeb1bd0e1d77fab775b1d9f3e25.zip
define MQ_PRIO_MAX
-rw-r--r--include/limits.h1
-rw-r--r--src/conf/sysconf.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/include/limits.h b/include/limits.h
index 3953aea5..4d0410a0 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 1c0ae88d..1557aa54 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, /* ?? */