lib/compression: Include missing stat header file
commit0c2146eb00c0e4fc4c933c3d5f2bf3469c3671ba
authorAnoop C S <anoopcs@samba.org>
Mon, 5 Dec 2022 10:54:46 +0000 (5 16:24 +0530)
committerVolker Lendecke <vl@samba.org>
Tue, 6 Dec 2022 11:39:16 +0000 (6 11:39 +0000)
treea2868494b819f276ef86d0b5b8192e2ed73f3bf5
parentf569f2c17f87f551bcaa6c2fa5d6204107982c3b
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
lib/compression/tests/test_lzx_huffman.c
lib/compression/tests/test_lzxpress_plain.c