diff options
author | waker <wakeroid@gmail.com> | 2011-05-04 19:22:28 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2011-05-04 19:22:28 +0200 |
commit | cb70ca95251e9140aa759d76d18b5fb6e5bfeeaf (patch) | |
tree | f53c689951e3cddfb07d1822d7384c4bd9c74e50 /vfs_stdio.c | |
parent | a9ebeaf4f529bddc4d4f1e880d693682d778f371 (diff) |
few bsd compat fixes
Diffstat (limited to 'vfs_stdio.c')
-rw-r--r-- | vfs_stdio.c | 10 |
1 files changed, 8 insertions, 2 deletions
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 <fcntl.h> #include <unistd.h> +#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.", |