aboutsummaryrefslogtreecommitdiff
path: root/text.c
diff options
context:
space:
mode:
Diffstat (limited to 'text.c')
-rw-r--r--text.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/text.c b/text.c
index 55edf0e..1e97a14 100644
--- a/text.c
+++ b/text.c
@@ -24,7 +24,9 @@
#include "util.h"
/* Allocate blocks holding the actual file content in junks of size: */
+#ifndef BLOCK_SIZE
#define BLOCK_SIZE (1 << 20)
+#endif
/* Files smaller than this value are copied on load, larger ones are mmap(2)-ed
* directely. Hence the former can be truncated, while doing so on the latter
* results in havoc. */