diff --git a/lrzip.c b/lrzip.c index 8088090..129933e 100644 --- a/lrzip.c +++ b/lrzip.c @@ -41,6 +41,7 @@ #include "rzip.h" #include "runzip.h" #include "util.h" +#include "stream.h" #include "liblrzip.h" /* flag defines */ #define MAGIC_LEN (39) @@ -240,8 +241,6 @@ int open_tmpoutfile(rzip_control *control) return fd_out; } -extern const one_g; - static void fwrite_stdout(void *buf, i64 len) { uchar *offset_buf = buf; diff --git a/stream.h b/stream.h index b26dde2..af4db59 100644 --- a/stream.h +++ b/stream.h @@ -37,5 +37,6 @@ int write_stream(rzip_control *control, void *ss, int streamno, uchar *p, i64 le i64 read_stream(rzip_control *control, void *ss, int streamno, uchar *p, i64 len); int close_stream_out(rzip_control *control, void *ss); int close_stream_in(void *ss); +const i64 one_g; #endif