diff mbox series

tst_safe_file_at: Add missing stat related header

Message ID 1666149553-26514-1-git-send-email-xuyang2018.jy@fujitsu.com
State Accepted
Headers show
Series tst_safe_file_at: Add missing stat related header | expand

Commit Message

Yang Xu Oct. 19, 2022, 3:19 a.m. UTC
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(+)

Comments

Li Wang Oct. 19, 2022, 3 a.m. UTC | #1
Pushed together with Richard's fix, thanks!
diff mbox series

Patch

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, ...)			\