Skip to contentSkip to conversation

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

PATCH In review Theodore Ts'o 2 participants 2 messages Feb 18, 2025

lore
Share & tools
lore
#0 lore raw

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

The <sys/uio.h> header is needed to provide the function declarations for preadv2() and pwritev2().

---
 ltp/fsx.c | 1 +
 1 file changed, 1 insertion(+)
ltp/fsx.c +1 -0
index 2c19fff88..9a3d4cce0 100644
@@ -38,6 +38,7 @@
 #include <liburing.h>
 #endif
 #include <sys/syscall.h>
+#include <sys/uio.h>
 
 #ifndef MAP_FILE
 # define MAP_FILE 0
Signature · 1 line
2.47.2
#1 lore raw
Quoted 13 lines · Theodore Ts'o

The <sys/uio.h> header is needed to provide the function declarations for preadv2() and pwritev2().

---
 ltp/fsx.c | 1 +
 1 file changed, 1 insertion(+)
ltp/fsx.c +0 -0
index 2c19fff88..9a3d4cce0 100644

ltp/fsx.c line 41

Quoted 4 lines
ltp/fsx.c +1 -0
@@ -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

Quoted 6 lines
ltp/fsx.c +0 -0
 #ifndef MAP_FILE
 # define MAP_FILE 0
Signature · 1 line
2.47.2