mirror of
https://github.com/rkd77/elinks.git
synced 2024-06-27 01:25:34 +00: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
|
deps += zstddeps
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if conf_data.get('CONFIG_LZMA')
|
||||||
|
lzmadeps = dependency('liblzma')
|
||||||
|
deps += lzmadeps
|
||||||
|
endif
|
||||||
|
|
||||||
if conf_data.get('CONFIG_IDN')
|
if conf_data.get('CONFIG_IDN')
|
||||||
idndeps = dependency('libidn')
|
idndeps = dependency('libidn')
|
||||||
deps += idndeps
|
deps += idndeps
|
||||||
|
|
|
@ -60,7 +60,7 @@ lzma_open(struct stream_encoded *stream, int fd)
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
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;
|
struct lzma_enc_data *data = (struct lzma_enc_data *) stream->data;
|
||||||
int err = 0;
|
int err = 0;
|
||||||
|
@ -107,7 +107,7 @@ lzma_read(struct stream_encoded *stream, char *buf, int len)
|
||||||
}
|
}
|
||||||
|
|
||||||
static char *
|
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;
|
struct lzma_enc_data *enc_data = (struct lzma_enc_data *) st->data;
|
||||||
lzma_stream *stream = &enc_data->flzma_stream;
|
lzma_stream *stream = &enc_data->flzma_stream;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user