Fix build on platforms (like Solaris 10, reportedly) which lack a MAP_FILE.

svn:r1375
This commit is contained in:
Nick Mathewson 2009-07-23 14:48:24 +00:00
parent 49de08ef35
commit 8eb155a1c0

View File

@ -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