From 8d74c9c44f75bb427808da876650a074b1319467 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=ADas=20Fonzo?= Date: Wed, 22 Jan 2020 16:58:53 -0300 Subject: Added missing headers for tdeinit/start_tdeinit.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Error found when compiling against GCC9+Musl: Scanning dependencies of target start_tdeinit [ 51%] Building C object tdeinit/CMakeFiles/start_tdeinit.dir/start_tdeinit.c.o /usr/src/qi/build/tdelibs-trinity-14.0.7/tdeinit/start_tdeinit.c: In function ‘set_protection’: /usr/src/qi/build/tdelibs-trinity-14.0.7/tdeinit/start_tdeinit.c:47:16: error: storage size of ‘st’ isn’t known 47 | struct stat st; | ^~ /usr/src/qi/build/tdelibs-trinity-14.0.7/tdeinit/start_tdeinit.c:51:9: warning: implicit declaration of function ‘lstat’ [-Wimplicit-function-declaration] 51 | if ( lstat (buf, &st) == 0) { | ^~~~~ make[2]: *** [tdeinit/CMakeFiles/start_tdeinit.dir/build.make:63: tdeinit/CMakeFiles/start_tdeinit.dir/start_tdeinit.c.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:10421: tdeinit/CMakeFiles/start_tdeinit.dir/all] Error 2 make: *** [Makefile:141: all] Error 2 Signed-off-by: Matías Fonzo --- tdeinit/start_tdeinit.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tdeinit') diff --git a/tdeinit/start_tdeinit.c b/tdeinit/start_tdeinit.c index e46aaa49f..c4062ddb4 100644 --- a/tdeinit/start_tdeinit.c +++ b/tdeinit/start_tdeinit.c @@ -19,6 +19,9 @@ #include +#include +#include + #include #include #include -- cgit v1.2.1