file: do not declare mmapBlock() if it won't be defined
authorRafaël Carré <funman@videolan.org>
Fri, 21 Dec 2007 21:05:02 +0000 (21:05 +0000)
committerRafaël Carré <funman@videolan.org>
Fri, 21 Dec 2007 21:05:02 +0000 (21:05 +0000)
modules/access/file.c

index 3454e9d..90ddd5a 100644 (file)
@@ -108,7 +108,9 @@ vlc_module_end();
 static int  Seek( access_t *, int64_t );
 static ssize_t Read( access_t *, uint8_t *, size_t );
 static int  Control( access_t *, int, va_list );
+#ifdef HAVE_MMAP
 static block_t *mmapBlock( access_t * );
+#endif
 
 static int  open_file( access_t *, const char * );