Skip to content

Commit

Permalink
Fix build on platforms (like Solaris 10, reportedly) which lack a MAP…
Browse files Browse the repository at this point in the history
…_FILE.

svn:r1375
  • Loading branch information
nmathewson committed Jul 23, 2009
1 parent c5daaac commit 8415376
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion buffer.c
Expand Up @@ -2187,7 +2187,10 @@ evbuffer_add_file(struct evbuffer *outbuf, int fd,
#ifdef MAP_NOCACHE
MAP_NOCACHE |
#endif
MAP_FILE | MAP_PRIVATE,
#ifdef MAP_FILE
MAP_FILE |
#endif
MAP_PRIVATE,
fd, 0);
/* some mmap implementations require offset to be a multiple of
* the page size. most users of this api, are likely to use 0
Expand Down

0 comments on commit 8415376

Please sign in to comment.