diff --git a/include/libc/libc_fcntl.h b/include/libc/libc_fcntl.h index 342e4ef5ced1e788f7d2eebdf6aba9043e5ae975..6d6f8ee6d7e3ad975e8a1c1a316ebf0b2a4d10b3 100644 --- a/include/libc/libc_fcntl.h +++ b/include/libc/libc_fcntl.h @@ -4,6 +4,14 @@ #ifndef LIBC_FCNTL_H__ #define LIBC_FCNTL_H__ +#ifdef RT_USING_NEWLIB +#include + +#ifndef O_NONBLOCK +#define O_NONBLOCK 04000 +#endif + +#else #define O_RDONLY 00 #define O_WRONLY 01 #define O_RDWR 02 @@ -53,5 +61,7 @@ #define F_GETOWN_EX 16 #define F_GETOWNER_UIDS 17 +#endif #endif +