From cb70ca95251e9140aa759d76d18b5fb6e5bfeeaf Mon Sep 17 00:00:00 2001 From: waker Date: Wed, 4 May 2011 19:22:28 +0200 Subject: few bsd compat fixes --- vfs_stdio.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'vfs_stdio.c') diff --git a/vfs_stdio.c b/vfs_stdio.c index bab1656e..840ee722 100644 --- a/vfs_stdio.c +++ b/vfs_stdio.c @@ -26,6 +26,12 @@ #include #include +#ifndef __linux__ +#define off64_t off_t +#define lseek64 lseek +#define O_LARGEFILE 0 +#endif + //#define USE_STDIO static DB_functions_t *deadbeef; @@ -159,8 +165,8 @@ stdio_is_streaming (void) { // standard stdio vfs static DB_vfs_t plugin = { DB_PLUGIN_SET_API_VERSION - .plugin.version_major = 0, - .plugin.version_minor = 1, + .plugin.version_major = 1, + .plugin.version_minor = 0, .plugin.type = DB_PLUGIN_VFS, .plugin.name = "stdio vfs", .plugin.descr = "Standard IO plugin\nUsed for reading normal local files\nIt is statically linked, so you can't delete it.", -- cgit v1.2.3