git.videolan.org
/
vlc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ef4b19
)
Don't use MAP_POPULATE
author
Rémi Denis-Courmont
<rem@videolan.org>
Tue, 27 Nov 2007 18:17:13 +0000
(18:17 +0000)
committer
Rémi Denis-Courmont
<rem@videolan.org>
Tue, 27 Nov 2007 18:17:13 +0000
(18:17 +0000)
modules/access/file.c
patch
|
blob
|
history
diff --git
a/modules/access/file.c
b/modules/access/file.c
index
3afe6f6
..
183a6c8
100644
(file)
--- a/
modules/access/file.c
+++ b/
modules/access/file.c
@@
-327,9
+327,6
@@
static int Read( access_t *p_access, uint8_t *p_buffer, int i_len )
#ifdef HAVE_MMAP
# define MMAP_SIZE (1 << 18)
-# ifndef MAP_POPULATE
-# define MAP_POPULATE 0
-# endif
struct block_sys_t
{
@@
-352,7
+349,7
@@
static block_t *mmapBlock (access_t *p_access)
{
access_sys_t *p_sys = p_access->p_sys;
- const int flags = MAP_SHARED
| MAP_POPULATE
;
+ const int flags = MAP_SHARED;
const size_t pagesize = sysconf (_SC_PAGE_SIZE);
off_t offset = p_access->info.i_pos & ~(pagesize - 1);
size_t align = p_access->info.i_pos & (pagesize - 1);