1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-20 00:15:31 +00:00

[lzma] Compilation fix

This commit is contained in:
Witold Filipczyk 2021-12-13 16:22:50 +01:00
parent 09df9ea3d1
commit 3ea2609ced
2 changed files with 7 additions and 2 deletions

View File

@ -235,6 +235,11 @@ if conf_data.get('CONFIG_ZSTD')
deps += zstddeps
endif
if conf_data.get('CONFIG_LZMA')
lzmadeps = dependency('liblzma')
deps += lzmadeps
endif
if conf_data.get('CONFIG_IDN')
idndeps = dependency('libidn')
deps += idndeps

View File

@ -60,7 +60,7 @@ lzma_open(struct stream_encoded *stream, int fd)
}
static int
lzma_read(struct stream_encoded *stream, char *buf, int len)
lzma_read(struct stream_encoded *stream, unsigned char *buf, int len)
{
struct lzma_enc_data *data = (struct lzma_enc_data *) stream->data;
int err = 0;
@ -107,7 +107,7 @@ lzma_read(struct stream_encoded *stream, char *buf, int len)
}
static char *
lzma_decode_buffer(struct stream_encoded *st, char *data, int len, int *new_len)
lzma_decode_buffer(struct stream_encoded *st, unsigned char *data, int len, int *new_len)
{
struct lzma_enc_data *enc_data = (struct lzma_enc_data *) st->data;
lzma_stream *stream = &enc_data->flzma_stream;