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 <paul.sokolovsky@linaro.org>
This commit is contained in:
parent
7e9263098a
commit
0fd8a47a19
1 changed files with 1 additions and 4 deletions
|
@ -10,6 +10,7 @@
|
|||
#include <kernel.h>
|
||||
#include <posix/time.h>
|
||||
#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, ...);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue