mirror of
https://github.com/ksherlock/profuse.git
synced 2025-01-10 23:29:42 +00:00
linux fixes
git-svn-id: https://profuse.googlecode.com/svn/branches/v2@272 aa027e90-d47c-11dd-86d7-074df07e0730
This commit is contained in:
parent
e59ebb4d53
commit
0db1d92287
@ -152,14 +152,16 @@ bool make_mount_dir(std::string name, std::string &path)
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
extern void init_ops(fuse_lowlevel_ops *ops);
|
||||
struct options options = { 0 };
|
||||
struct options options;
|
||||
|
||||
struct fuse_args args = FUSE_ARGS_INIT(argc, argv);
|
||||
struct fuse_chan *ch;
|
||||
char *mountpoint = NULL;
|
||||
int err = -1;
|
||||
std::string mountPath;
|
||||
unsigned format;
|
||||
std::memset(&options, 0, sizeof(options));
|
||||
|
||||
struct fuse_args args = FUSE_ARGS_INIT(argc, argv);
|
||||
struct fuse_chan *ch;
|
||||
char *mountpoint = NULL;
|
||||
int err = -1;
|
||||
std::string mountPath;
|
||||
unsigned format = 0;
|
||||
|
||||
int foreground = false;
|
||||
int multithread = false;
|
||||
@ -305,4 +307,4 @@ int main(int argc, char **argv)
|
||||
|
||||
|
||||
return err ? 1 : 0;
|
||||
}
|
||||
}
|
||||
|
@ -1,14 +1,17 @@
|
||||
|
||||
#ifdef __APPLE__
|
||||
#define __FreeBSD__ 10
|
||||
#define __DARWIN_64_BIT_INO_T 1
|
||||
#define _FILE_OFFSET_BITS 64
|
||||
#endif
|
||||
|
||||
#define _FILE_OFFSET_BITS 64
|
||||
#define FUSE_USE_VERSION 27
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <cerrno>
|
||||
#include <cstdio>
|
||||
#include <cstring>
|
||||
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
@ -45,6 +48,10 @@
|
||||
#define DEBUGNAME() \
|
||||
if (0) { std::fprintf(stderr, "%s\n", __func__); }
|
||||
|
||||
// linux doesn't have ENOATTR.
|
||||
#ifndef ENOATTR
|
||||
#define ENOATTR ENOENT
|
||||
#endif
|
||||
|
||||
using namespace Pascal;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user