summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2019-08-20 12:44:33 +0800
committerGitHub <[email protected]>2019-08-20 12:44:33 +0800
commit418757fa6732fca3ba9d33ea6daad054f06612fd (patch)
treee1a6eadd5b62aea7a341783a06aa10586318717d
parent0425f913efeb50acd6032305e51223f6fa991c62 (diff)
parentb69ce64286abf6e0401feae5ce82a78d3ed302f7 (diff)
Merge pull request #2972 from zhangjun1996/master
[include][libc]改回O_DIRCTORY与O_NONBLOCK,解决O_DIRCOTY与newlib中O_BINARY的相同定义
-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