mirror of
https://github.com/trapexit/mergerfs.git
synced 2025-01-20 05:52:47 +08:00
misc fixes to compile on older platforms
This commit is contained in:
parent
ce2ec89964
commit
58446f9124
|
@ -334,7 +334,7 @@ namespace mergerfs
|
|||
FUSE_OPT_KEY("--help",MERGERFS_OPT_HELP),
|
||||
FUSE_OPT_KEY("-v",MERGERFS_OPT_VERSION),
|
||||
FUSE_OPT_KEY("--version",MERGERFS_OPT_VERSION),
|
||||
FUSE_OPT_END
|
||||
{NULL,-1U,0}
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -32,6 +32,8 @@
|
|||
|
||||
#include "fileinfo.hpp"
|
||||
|
||||
typedef struct fuse_bufvec fuse_bufvec;
|
||||
|
||||
static
|
||||
int
|
||||
_read_buf(const int fd,
|
||||
|
|
|
@ -22,15 +22,24 @@
|
|||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef __READ_BUF_HPP__
|
||||
#define __READ_BUF_HPP__
|
||||
|
||||
#include <fuse.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
namespace mergerfs
|
||||
{
|
||||
namespace fuse
|
||||
{
|
||||
int
|
||||
read_buf(const char *fusepath,
|
||||
fuse_bufvec **buf,
|
||||
size_t size,
|
||||
off_t offset,
|
||||
fuse_file_info *fi);
|
||||
read_buf(const char *fusepath,
|
||||
struct fuse_bufvec **buf,
|
||||
size_t size,
|
||||
off_t offset,
|
||||
fuse_file_info *fi);
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
@ -22,14 +22,23 @@
|
|||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef __WRITE_BUF_HPP__
|
||||
#define __WRITE_BUF_HPP__
|
||||
|
||||
#include <fuse.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
namespace mergerfs
|
||||
{
|
||||
namespace fuse
|
||||
{
|
||||
int
|
||||
write_buf(const char *fusepath,
|
||||
fuse_bufvec *buf,
|
||||
off_t offset,
|
||||
fuse_file_info *fi);
|
||||
write_buf(const char *fusepath,
|
||||
struct fuse_bufvec *buf,
|
||||
off_t offset,
|
||||
fuse_file_info *fi);
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue
Block a user