mirror of
https://github.com/ckolivas/lrzip.git
synced 2025-12-06 07:12:00 +01:00
Fixes to make lrzip compile on cygwin courtesy of Тулебаев Салават .
This commit is contained in:
parent
920ad9251d
commit
f81f8c68c7
3
lrzip.c
3
lrzip.c
|
|
@ -509,7 +509,8 @@ static void release_hashes(rzip_control *control)
|
|||
{
|
||||
memset(control->salt_pass, 0, PASS_LEN);
|
||||
memset(control->hash, 0, SALT_LEN);
|
||||
munlockall();
|
||||
munlock(control->salt_pass, PASS_LEN);
|
||||
munlock(control->hash, HASH_LEN);
|
||||
free(control->salt_pass);
|
||||
free(control->hash);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -90,7 +90,8 @@ typedef uint32_t u32;
|
|||
typedef struct rzip_control rzip_control;
|
||||
typedef struct md5_ctx md5_ctx;
|
||||
|
||||
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__APPLE__)
|
||||
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || \
|
||||
defined(__APPLE__) || defined(__CYGWIN__)
|
||||
#define mremap fake_mremap
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue