mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
Actually enable mmap. That should improve matters.
svn:r6694
This commit is contained in:
parent
d3784ff1df
commit
1cd04abf1a
@ -107,7 +107,7 @@ const char compat_c_id[] =
|
||||
#define INADDR_NONE ((unsigned long) -1)
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_SYS_MMAP
|
||||
#ifdef HAVE_SYS_MMAN
|
||||
const char *
|
||||
tor_mmap_file(const char *filename, size_t *size)
|
||||
{
|
||||
@ -152,6 +152,7 @@ const char *
|
||||
tor_mmap_file(const char *filename, size_t *size)
|
||||
{
|
||||
char *res = read_file_to_str(filename, 1);
|
||||
if (res)
|
||||
*size = strlen(res) + 1;
|
||||
return res;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user