summaryrefslogtreecommitdiff
path: root/components/dfs/include/dfs_def.h
diff options
context:
space:
mode:
Diffstat (limited to 'components/dfs/include/dfs_def.h')
-rw-r--r--components/dfs/include/dfs_def.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/components/dfs/include/dfs_def.h b/components/dfs/include/dfs_def.h
index 0f75a5162b..7e954d749c 100644
--- a/components/dfs/include/dfs_def.h
+++ b/components/dfs/include/dfs_def.h
@@ -23,7 +23,7 @@
* 2004-10-14 Beranard Clean up the code.
* 2005-01-22 Beranard Clean up the code, port to MinGW
*/
-
+
#ifndef __DFS_DEF_H__
#define __DFS_DEF_H__
@@ -70,7 +70,7 @@
#define dfs_log(level, x)
#endif
-#if defined(RT_USING_NEWLIB)
+#if defined(RT_USING_NEWLIB)
#include <string.h>
#include <sys/stat.h> /* used for struct stat */
#include <sys/statfs.h> /* used for struct statfs */
@@ -108,6 +108,10 @@
#define DFS_O_EXCL O_EXCL
#define DFS_O_TRUNC O_TRUNC
#define DFS_O_APPEND O_APPEND
+
+#ifndef O_DIRECTORY
+#define O_DIRECTORY 0x0200000
+#endif
#define DFS_O_DIRECTORY O_DIRECTORY
/* Seek flags */