[LTP] [PATCH] tst_safe_file_at: Add missing stat related header
Yang Xu
xuyang2018.jy@fujitsu.com
Wed Oct 19 05:19:13 CEST 2022
This fixes compilation on apline:last.
I have verified this[1].
[1]https://github.com/xuyang0410/ltp/actions/runs/3278267589/jobs/5396469021
Signed-off-by: Yang Xu <xuyang2018.jy@fujitsu.com>
---
include/tst_safe_file_at.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/tst_safe_file_at.h b/include/tst_safe_file_at.h
index 082a5acd9..a1aa19fad 100644
--- a/include/tst_safe_file_at.h
+++ b/include/tst_safe_file_at.h
@@ -7,6 +7,8 @@
#define TST_SAFE_FILE_AT_H
#include <sys/types.h>
+#include <sys/stat.h>
+#include <unistd.h>
#include <stdarg.h>
#define SAFE_OPENAT(dirfd, path, oflags, ...) \
--
2.27.0
More information about the ltp
mailing list