summaryrefslogtreecommitdiff
path: root/lib/compression
diff options
context:
space:
mode:
authorAnoop C S <anoopcs@samba.org>2022-12-05 16:24:46 +0530
committerVolker Lendecke <vl@samba.org>2022-12-06 11:39:16 +0000
commit0c2146eb00c0e4fc4c933c3d5f2bf3469c3671ba (patch)
treea2868494b819f276ef86d0b5b8192e2ed73f3bf5 /lib/compression
parentf569f2c17f87f551bcaa6c2fa5d6204107982c3b (diff)
downloadsamba-0c2146eb00c0e4fc4c933c3d5f2bf3469c3671ba.tar.gz
lib/compression: Include missing stat header file
<sys/stat.h> 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 <anoopcs@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Tue Dec 6 11:39:16 UTC 2022 on sn-devel-184
Diffstat (limited to 'lib/compression')
-rw-r--r--lib/compression/tests/test_lzx_huffman.c1
-rw-r--r--lib/compression/tests/test_lzxpress_plain.c1
2 files changed, 2 insertions, 0 deletions
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 <setjmp.h>
#include <cmocka.h>
#include <stdbool.h>
+#include <sys/stat.h>
#include "replace.h"
#include <talloc.h>
#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 <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
+#include <sys/stat.h>
#include <cmocka.h>
#include "includes.h"
#include "talloc.h"