[vlc-devel] commit: provide default block_mmap_Alloc ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat May 24 10:53:33 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Sat May 24 11:41:49 2008 +0300| [c4e0f18676bfbc37fe1504a719b51204e92de664]

provide default block_mmap_Alloc

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c4e0f18676bfbc37fe1504a719b51204e92de664
---

 src/misc/block.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/misc/block.c b/src/misc/block.c
index 5123adc..2bd84b0 100644
--- a/src/misc/block.c
+++ b/src/misc/block.c
@@ -237,8 +237,14 @@ block_t *block_mmap_Alloc (void *addr, size_t length)
     block->length = length;
     return &block->self;
 }
+#else
+block_t *block_mmap_Alloc (void *addr, size_t length)
+{
+    (void)addr; (void)length; return NULL;
+}
 #endif
 
+
 #ifdef WIN32
 static
 ssize_t pread (int fd, void *buf, size_t count, off_t offset)




More information about the vlc-devel mailing list