diff --git a/components/dfs/include/dfs_posix.h b/components/dfs/include/dfs_posix.h index 3e6f5f180d7dbec785bb9feae9de9a813d605cc9..2e417c1461c9fb741d238ee6196aec4c85ff75ee 100644 --- a/components/dfs/include/dfs_posix.h +++ b/components/dfs/include/dfs_posix.h @@ -134,7 +134,7 @@ int unlink(const char *pathname); int stat(const char *file, struct stat *buf); int fstat(int fildes, struct stat *buf); int fsync(int fildes); -int ioctl(int fildes, unsigned long cmd, void *data); +int ioctl(int fildes, long cmd, void *data); /* directory api*/ int rmdir(const char *path); diff --git a/components/dfs/src/dfs_posix.c b/components/dfs/src/dfs_posix.c index 58db600eb85eb1e768e1889026f4aa77bc3d2ae0..0f1d9569e66bb2ec065c5cea0754128844f2d7e9 100644 --- a/components/dfs/src/dfs_posix.c +++ b/components/dfs/src/dfs_posix.c @@ -427,7 +427,7 @@ RTM_EXPORT(fsync); * @return 0 on successful completion. Otherwise, -1 shall be returned and errno * set to indicate the error. */ -int ioctl(int fildes, unsigned long cmd, void *data) +int ioctl(int fildes, long cmd, void *data) { int ret; struct dfs_fd *d;