Commit 9c28c114 authored by Felix Paul Kühne's avatar Felix Paul Kühne

* mmap is broken on Darwin. Disabled it for now to have basic file access functionality working.

parent e91b8125
......@@ -203,6 +203,7 @@ static int Open( vlc_object_t *p_this )
p_sys->b_seekable = VLC_FALSE;
# ifdef HAVE_MMAP
# ifndef __APPLE__
p_sys->pagemask = sysconf (_SC_PAGE_SIZE) - 1;
/* Autodetect mmap() support */
......@@ -223,6 +224,7 @@ static int Open( vlc_object_t *p_this )
else
msg_Dbg (p_this, "mmap disabled (non regular file)");
# endif
# endif
#else
p_sys->b_seekable = !b_stdin;
# warning File size not known!
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment