This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 1e3e551a19dd612094e3104ae9fce35bdb7f027a
Author: chenrun1 <[email protected]>
AuthorDate: Mon Aug 12 14:29:50 2024 +0800

    v9fs/client.h:fix array type has incomplete element type
    
    Summary:
    fix error:
    v9fs/client.c: In function 'v9fs_client_walk':
    v9fs/client.c:1462:16: error: array type has incomplete element type 
'struct iovec'
     1462 |   struct iovec wiov[2];
          |                ^~~~
    v9fs/client.c:1463:16: error: array type has incomplete element type 
'struct iovec'
     1463 |   struct iovec riov[2];
          |                ^~~~
    v9fs/client.c:1463:16: warning: unused variable 'riov' [-Wunused-variable]
    v9fs/client.c:1462:16: warning: unused variable 'wiov' [-Wunused-variable]
     1462 |   struct iovec wiov[2];
          |                ^~~~
    v9fs/client.c: In function 'v9fs_transport_done':
    v9fs/client.c:1721:49: error: invalid use of undefined type 'struct iovec'
     1721 |   FAR struct v9fs_lerror_s *error = cookie->riov[0].iov_base;
          |                                                 ^
    v9fs/client.c:1721:52: error: invalid use of undefined type 'struct iovec'
     1721 |   FAR struct v9fs_lerror_s *error = cookie->riov[0].iov_base;
          |                                                    ^
    
    Signed-off-by: chenrun1 <[email protected]>
---
 fs/v9fs/client.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fs/v9fs/client.h b/fs/v9fs/client.h
index 81eb96e659..99a24e723a 100644
--- a/fs/v9fs/client.h
+++ b/fs/v9fs/client.h
@@ -32,6 +32,7 @@
 #include <dirent.h>
 #include <sys/stat.h>
 #include <sys/statfs.h>
+#include <sys/uio.h>
 
 /****************************************************************************
  * Type Definitions

Reply via email to