From 0c2146eb00c0e4fc4c933c3d5f2bf3469c3671ba Mon Sep 17 00:00:00 2001 From: Anoop C S Date: Mon, 5 Dec 2022 16:24:46 +0530 Subject: lib/compression: Include missing stat header file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit was missing from compression library tests which resulted in the following compile time error: ../../lib/compression/tests/test_lzx_huffman.c: In function ‘datablob_from_file’: ../../lib/compression/tests/test_lzx_huffman.c:383:21: error: storage size of ‘s’ isn’t known 383 | struct stat s; | ^ ../../lib/compression/tests/test_lzx_huffman.c:389:15: warning: implicit declaration of function ‘fstat’ [-Wimplicit-function-declaration] 389 | ret = fstat(fileno(fh), &s); | ^~~~~ Signed-off-by: Anoop C S Reviewed-by: Douglas Bagnall Reviewed-by: Volker Lendecke Autobuild-User(master): Volker Lendecke Autobuild-Date(master): Tue Dec 6 11:39:16 UTC 2022 on sn-devel-184 --- lib/compression/tests/test_lzx_huffman.c | 1 + lib/compression/tests/test_lzxpress_plain.c | 1 + 2 files changed, 2 insertions(+) (limited to 'lib/compression') diff --git a/lib/compression/tests/test_lzx_huffman.c b/lib/compression/tests/test_lzx_huffman.c index da094555c2d..3a055183f7b 100644 --- a/lib/compression/tests/test_lzx_huffman.c +++ b/lib/compression/tests/test_lzx_huffman.c @@ -27,6 +27,7 @@ #include #include #include +#include #include "replace.h" #include #include "lzxpress_huffman.h" diff --git a/lib/compression/tests/test_lzxpress_plain.c b/lib/compression/tests/test_lzxpress_plain.c index 57130852fc9..17e5a26207b 100644 --- a/lib/compression/tests/test_lzxpress_plain.c +++ b/lib/compression/tests/test_lzxpress_plain.c @@ -21,6 +21,7 @@ #include #include #include +#include #include #include "includes.h" #include "talloc.h" -- cgit v1.2.1