]> git.ipfire.org Git - thirdparty/systemd.git/commit
test: Fix build with !HAVE_LZ4 && HAVE_XZ
authorMichal Koutný <mkoutny@suse.com>
Fri, 1 May 2020 16:38:10 +0000 (18:38 +0200)
committerTopi Miettinen <topimiettinen@users.noreply.github.com>
Sat, 2 May 2020 20:04:36 +0000 (20:04 +0000)
commit2e4086060b42330c8b6b430227586dbb2d1eddb0
tree38aa838782c8abc0eb3ab33205476913b1ec2151
parent9494b39dac37894628cf5ef405e6bbc18f69bba9
test: Fix build with !HAVE_LZ4 && HAVE_XZ

HUGE_SIZE was defined inconsistently.

> In file included from ../src/basic/alloc-util.h:9,
>                  from ../src/journal/test-compress.c:9:
> ../src/journal/test-compress.c: In function ‘main’:
> ../src/journal/test-compress.c:280:33: error: ‘HUGE_SIZE’ undeclared (first use in this function)
>   280 |         assert_se(huge = malloc(HUGE_SIZE));
src/journal/test-compress.c