Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
cvsexportcommit: force crlf translation
[gitweb.git]
/
compat
/
mmap.c
diff --git
a/compat/mmap.c
b/compat/mmap.c
index 7f662fef7bcb408045eb1536afed058a607ae97b..14d31010dfe57e520c6864df4f84ea732018785f 100644
(file)
--- a/
compat/mmap.c
+++ b/
compat/mmap.c
@@
-4,7
+4,7
@@
void *git_mmap(void *start, size_t length, int prot, int flags, int fd, off_t of
{
size_t n = 0;
- if (start != NULL ||
!(flags & MAP_PRIVATE)
)
+ if (start != NULL ||
flags != MAP_PRIVATE || prot != PROT_READ
)
die("Invalid usage of mmap when built with NO_MMAP");
start = xmalloc(length);