Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debian lz4 #128

Merged
merged 2 commits into from Feb 3, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion libknet/compress_lz4.c
Expand Up @@ -10,7 +10,7 @@
#include "config.h"

#include <errno.h>
#include <lz4hc.h>
#include <lz4.h>

#include "logging.h"
#include "compress_model.h"
Expand Down
10 changes: 8 additions & 2 deletions libknet/compress_lz4hc.c
Expand Up @@ -10,6 +10,7 @@
#include "config.h"

#include <errno.h>
#include <lz4.h>
#include <lz4hc.h>

#include "logging.h"
Expand All @@ -22,8 +23,13 @@
#define KNET_LZ4HC_MAX LZ4HC_MAX_CLEVEL
#endif
#ifndef KNET_LZ4HC_MAX
#define KNET_LZ4HC_MAX 0
#error Please check lz4hc.h for missing LZ4HC_CLEVEL_MAX or LZ4HC_MAX_CLEVEL variants
/*
* older releases of lz4 do not define LZ4HC_CLEVEL range.
* According to lz4hc.h, any value between 0 and 16 is valid.
* We defalt to 16 based on the comments in the include file
* from older versions.
*/
#define KNET_LZ4HC_MAX 16
#endif

static int lz4hc_val_level(
Expand Down