mirror of
https://github.com/rkd77/elinks.git
synced 2024-09-27 02:56:18 -04:00
[lzma] Compilation fix
This commit is contained in:
parent
09df9ea3d1
commit
3ea2609ced
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user