]> git.sesse.net Git - vlc/commitdiff
* mmap is broken on Darwin. Disabled it for now to have basic file access functionali...
authorFelix Paul Kühne <fkuehne@videolan.org>
Tue, 25 Dec 2007 13:55:30 +0000 (13:55 +0000)
committerFelix Paul Kühne <fkuehne@videolan.org>
Tue, 25 Dec 2007 13:55:30 +0000 (13:55 +0000)
modules/access/file.c

index 6d01affc343b659aaca245ca11a237b619223e01..17c209cb5865dcd16705262154371284125eea2f 100644 (file)
@@ -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!