@@ -25,7 +25,12 @@
#include <rtthread.h>
#ifdef RT_USING_DFS
+#if RT_VER_NUM >= 0x40100
+#include <stdio.h> /* fix SEEK_END */
+#include <fcntl.h> /* fix O_RDONLY */
+#else
#include <dfs_posix.h>
+#endif /*RT_VER_NUM >= 0x40100*/
#endif
#ifdef RT_USING_SAL
@@ -28,7 +28,11 @@
#include <wn_utils.h>
+#include <strings.h> /* fix strncasecmp */
#ifdef WEBNET_USING_CGI
@@ -27,9 +27,13 @@
+#include <dirent.h> /* fix DIR */
+#include <fcntl.h> /* fix S_IFDIR */
-
#ifdef WEBNET_USING_INDEX
int webnet_module_dirindex(struct webnet_session* session, int event)
@@ -27,7 +27,13 @@
#include <wn_module.h>
+#include <unistd.h> /* fix lseek */
#if defined(WEBNET_USING_SSI)
@@ -26,7 +26,11 @@
+#include <fcntl.h> /* fix O_WRONLY */
#if defined(WEBNET_USING_UPLOAD)
@@ -25,7 +25,11 @@
#include <string.h>
+#include <fcntl.h> /* 当需要使用文件操作时,需要包含这个头文件 */
#include <webnet.h>
@@ -31,7 +31,13 @@
+#include <stdlib.h> /* fix atoi */
static int _webnet_module_system_init(struct webnet_session *session, int event)