mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-08 11:53:00 -04:00
Fix build on platforms (like Solaris 10, reportedly) which lack a MAP_FILE.
svn:r1375
This commit is contained in:
parent
49de08ef35
commit
8eb155a1c0
5
buffer.c
5
buffer.c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user