From 0fd8a47a19b385e6b6dbcb830961b5c6e4b04299 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Fri, 28 Sep 2018 16:08:34 +0300 Subject: [PATCH] include: posix: mqueue: Rely on O_RDWR and friends defines in sys/stat.h Don't duplicate definitions. This fixes build errors due to redifinitions of preprocessor symbols. Signed-off-by: Paul Sokolovsky --- include/posix/mqueue.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/include/posix/mqueue.h b/include/posix/mqueue.h index 2d0ed3a9d56..ab498f680ce 100644 --- a/include/posix/mqueue.h +++ b/include/posix/mqueue.h @@ -10,6 +10,7 @@ #include #include #include "sys/types.h" +#include "sys/stat.h" #ifdef __cplusplus extern "C" { @@ -38,10 +39,6 @@ typedef struct mq_attr { #define O_NONBLOCK_POS 14 #define O_NONBLOCK (1 << O_NONBLOCK_POS) - -#define O_RDONLY 0 -#define O_WRONLY 1 -#define O_RDWR 2 #endif /* _SYS_FCNTL_H_ */ mqd_t mq_open(const char *name, int oflags, ...);