Optionally don't use mmap.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4176 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -555,7 +555,7 @@ copy_stream(FILE *from, FILE *to)
|
|||||||
int hashbytes = HASHBYTES;
|
int hashbytes = HASHBYTES;
|
||||||
struct stat st;
|
struct stat st;
|
||||||
|
|
||||||
#ifdef HAVE_MMAP
|
#if defined(HAVE_MMAP) && !defined(NO_MMAP)
|
||||||
void *chunk;
|
void *chunk;
|
||||||
|
|
||||||
#ifndef MAP_FAILED
|
#ifndef MAP_FAILED
|
||||||
|
@@ -1303,7 +1303,7 @@ send_data(FILE *instr, FILE *outstr)
|
|||||||
|
|
||||||
case TYPE_I:
|
case TYPE_I:
|
||||||
case TYPE_L:
|
case TYPE_L:
|
||||||
#ifdef HAVE_MMAP
|
#if defined(HAVE_MMAP) && !defined(NO_MMAP)
|
||||||
#ifndef MAP_FAILED
|
#ifndef MAP_FAILED
|
||||||
#define MAP_FAILED (-1)
|
#define MAP_FAILED (-1)
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user