mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 08:52:27 +00:00
Will be used to decompress 'xz' objects. The check detects the liblzma.so devel library normally delivered by xz package. Signed-off-by: Jiri Olsa <[email protected]> Acked-by: Namhyung Kim <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> Cc: Corey Ashford <[email protected]> Cc: David Ahern <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephane Eranian <[email protected]>
11 lines
175 B
C
11 lines
175 B
C
#include <lzma.h>
|
|
|
|
int main(void)
|
|
{
|
|
lzma_stream strm = LZMA_STREAM_INIT;
|
|
int ret;
|
|
|
|
ret = lzma_stream_decoder(&strm, UINT64_MAX, LZMA_CONCATENATED);
|
|
return ret ? -1 : 0;
|
|
}
|