From 4792af49d89c1c0e141b40720d4ec1b89530411a Mon Sep 17 00:00:00 2001 From: Takeru Wada Date: Mon, 13 Mar 2023 14:37:51 +0000 Subject: [PATCH] lib/nolibc: Remove warnings of timespec This commit fixes the definition of pointer arguments in GCC >= 11. Signed-off-by: Takeru Wada Reviewed-by: Maria Sfiraiala Approved-by: Razvan Deaconescu Tested-by: Unikraft CI GitHub-Closes: #800 --- lib/nolibc/include/sys/stat.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/nolibc/include/sys/stat.h b/lib/nolibc/include/sys/stat.h index eb7871703..10bf10599 100644 --- a/lib/nolibc/include/sys/stat.h +++ b/lib/nolibc/include/sys/stat.h @@ -116,8 +116,8 @@ int mknod(const char *, mode_t, dev_t); int mknodat(int, const char *, mode_t, dev_t); #endif -int futimens(int, const struct timespec [2]); -int utimensat(int, const char *, const struct timespec [2], int); +int futimens(int, const struct timespec *); +int utimensat(int, const char *, const struct timespec *, int); #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) int lchmod(const char *, mode_t); -- 2.39.5