diff --git a/Makefile.am b/Makefile.am index 8289c65..830311e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -51,7 +51,9 @@ libtmplrzip_la_SOURCES = \ aes.c \ aes.h \ sha4.c \ - sha4.h + sha4.h \ + libzpaq/libzpaq.cpp \ + libzpaq/libzpaq.h libtmplrzip_la_LIBADD = lzma/C/liblzma.la diff --git a/libzpaq/libzpaq.cpp b/libzpaq/libzpaq.cpp index f0c35d5..85d1605 100644 --- a/libzpaq/libzpaq.cpp +++ b/libzpaq/libzpaq.cpp @@ -15,6 +15,7 @@ conforming to the ZPAQ level 2 standard. See http://mattmahoney.net/zpaq/ */ #include "libzpaq.h" +#include #include #include #include @@ -57,6 +58,10 @@ void Writer::write(const char* buf, int n) { put(U8(buf[i])); } +void error(const char* msg) { + fprintf(stderr, "zpipe error: %s\n", msg); + exit(1); +} ///////////////////////// allocx ////////////////////// // Allocate newsize > 0 bytes of executable memory and update