diff mbox series

fsx: add missing #include for sys/uio.h

Message ID 20250218145012.382965-1-tytso@mit.edu (mailing list archive)
State New
Headers show
Series fsx: add missing #include for sys/uio.h | expand

Commit Message

Theodore Ts'o Feb. 18, 2025, 2:50 p.m. UTC
The <sys/uio.h> header is needed to provide the function declarations
for preadv2() and pwritev2().

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
---
 ltp/fsx.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Darrick J. Wong Feb. 18, 2025, 5:36 p.m. UTC | #1
On Tue, Feb 18, 2025 at 09:50:12AM -0500, Theodore Ts'o wrote:
> The <sys/uio.h> header is needed to provide the function declarations
> for preadv2() and pwritev2().
> 
> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
> ---
>  ltp/fsx.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/ltp/fsx.c b/ltp/fsx.c
> index 2c19fff88..9a3d4cce0 100644
> --- a/ltp/fsx.c
> +++ b/ltp/fsx.c
> @@ -38,6 +38,7 @@
>  #include <liburing.h>
>  #endif
>  #include <sys/syscall.h>
> +#include <sys/uio.h>

Already fixed by commit a7d82369dcae0d ("fsx: fix compile error for
preadv2()") in for-next.

--D

>  #ifndef MAP_FILE
>  # define MAP_FILE 0
> -- 
> 2.47.2
> 
>
diff mbox series

Patch

diff --git a/ltp/fsx.c b/ltp/fsx.c
index 2c19fff88..9a3d4cce0 100644
--- a/ltp/fsx.c
+++ b/ltp/fsx.c
@@ -38,6 +38,7 @@ 
 #include <liburing.h>
 #endif
 #include <sys/syscall.h>
+#include <sys/uio.h>
 
 #ifndef MAP_FILE
 # define MAP_FILE 0