summaryrefslogtreecommitdiff
path: root/include/libc
diff options
context:
space:
mode:
authorzhangjun <[email protected]>2019-08-20 09:16:42 +0800
committerzhangjun <[email protected]>2019-08-20 09:16:42 +0800
commitb69ce64286abf6e0401feae5ce82a78d3ed302f7 (patch)
treee1a6eadd5b62aea7a341783a06aa10586318717d /include/libc
parent0425f913efeb50acd6032305e51223f6fa991c62 (diff)
改回O_DIRCTORY与O_NONBLOCK,解决O_DIRCOTY与newlib中O_BINARY的相同定义
Diffstat (limited to 'include/libc')
-rw-r--r--include/libc/libc_fcntl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/libc/libc_fcntl.h b/include/libc/libc_fcntl.h
index 83b9af9b1e..1b7c69b1f4 100644
--- a/include/libc/libc_fcntl.h
+++ b/include/libc/libc_fcntl.h
@@ -20,7 +20,7 @@
#include <fcntl.h>
#ifndef O_NONBLOCK
-#define O_NONBLOCK 04000
+#define O_NONBLOCK 0x4000
#endif
#if defined(_WIN32)
@@ -35,7 +35,7 @@
#endif
#ifndef O_DIRECTORY
-#define O_DIRECTORY 0200000
+#define O_DIRECTORY 0x200000
#endif
#ifndef O_BINARY