Skip to content

Commit f49f54b

Browse files
wpcwzykito-cheng
authored andcommitted
libgloss/riscv: Fix struct utimbuf warning in sys_utime.c stub
Include <utime.h> to ensure 'struct utimbuf' is visible. This fixes a compiler warning where the struct was declared inside the parameter list. Signed-off-by: Pincheng Wang <[email protected]>
1 parent b1d2580 commit f49f54b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libgloss/riscv/sys_utime.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#include <machine/syscall.h>
2+
#include <sys/types.h>
3+
#include <utime.h>
24

35
/* Stub. */
46
int

0 commit comments

Comments
 (0)