History

uapi: mqueue.h: add missing linux/types.h include

Commit 63159f5dcccb ("uapi: Use __kernel_long_t in struct mq_attr") changed the types from long to __kernel_long_t, but didn't add a linux/types.h include. Code that tries to include this header directly breaks: /usr/include/linux/mqueue.h:26:2: error: unknown type name '__kernel_long_t' __kernel_long_t mq_flags; /* message queue flags */ This also upsets configure tests for this header: checking linux/mqueue.h usability... no checking linux/mqueue.h presence... yes configure: WARNING: linux/mqueue.h: present but cannot be compiled configure: WARNING: linux/mqueue.h: check for missing prerequisite headers? configure: WARNING: linux/mqueue.h: see the Autoconf documentation configure: WARNING: linux/mqueue.h: section "Present But Cannot Be Compiled" configure: WARNING: linux/mqueue.h: proceeding with the compiler's result checking for linux/mqueue.h... no

Mike Frysinger committed 9 years ago

Commit 1ca5eeb1 parent 796f5711 file · +2 −0Browse files

Showing the changes to include/uapi/linux (1 of 1 file). Show all

Unified · Split

include/uapi/linux/mqueue.h+2−0
@@ -18,6 +18,8 @@ · 17 unmodified lines
18#ifndef _LINUX_MQUEUE_H18#ifndef _LINUX_MQUEUE_H
19#define _LINUX_MQUEUE_H19#define _LINUX_MQUEUE_H
20 20
21#include <linux/types.h>
22
21#define MQ_PRIO_MAX 3276823#define MQ_PRIO_MAX 32768
22/* per-uid limit of kernel memory used by mqueue, in bytes */24/* per-uid limit of kernel memory used by mqueue, in bytes */
23#define MQ_BYTES_MAX 81920025#define MQ_BYTES_MAX 819200