mirror of
https://github.com/ckolivas/lrzip.git
synced 2026-04-04 13:57:40 +00:00
header-mangling-part-X-move-all-headers-defines-into
This commit is contained in:
parent
e9eee5656b
commit
1a7c409e10
10 changed files with 128 additions and 87 deletions
30
stream.c
30
stream.c
|
|
@ -23,11 +23,39 @@
|
|||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#include "rzip.h"
|
||||
#ifdef HAVE_SYS_TIME_H
|
||||
# include <sys/time.h>
|
||||
#endif
|
||||
#ifdef HAVE_SYS_RESOURCE_H
|
||||
# include <sys/resource.h>
|
||||
#endif
|
||||
#include <sys/statvfs.h>
|
||||
#include <pthread.h>
|
||||
#include <bzlib.h>
|
||||
#include <zlib.h>
|
||||
#include <lzo/lzoconf.h>
|
||||
#include <lzo/lzo1x.h>
|
||||
#ifdef HAVE_ERRNO_H
|
||||
# include <errno.h>
|
||||
#endif
|
||||
|
||||
/* LZMA C Wrapper */
|
||||
#include "lzma/C/LzmaLib.h"
|
||||
|
||||
#include "util.h"
|
||||
#include "zpipe.h"
|
||||
#include "liblrzip.h"
|
||||
|
||||
|
||||
#ifdef __APPLE__
|
||||
# define fmemopen fake_fmemopen
|
||||
# define open_memstream fake_open_memstream
|
||||
# define memstream_update_buffer fake_open_memstream_update_buffer
|
||||
# define mremap fake_mremap
|
||||
#else
|
||||
# define memstream_update_buffer(A, B, C) (0)
|
||||
#endif
|
||||
|
||||
#define STREAM_BUFSIZE (1024 * 1024 * 10)
|
||||
|
||||
static struct compress_thread{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue