Skip to content

Commit

Permalink
Improve Linux compilability
Browse files Browse the repository at this point in the history
  • Loading branch information
tessro authored and mikejs committed Aug 22, 2010
1 parent 85cd761 commit 5ae305e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion operations.cpp
Expand Up @@ -28,7 +28,7 @@
#include <mongo/client/connpool.h> #include <mongo/client/connpool.h>


#ifdef __linux__ #ifdef __linux__
#include <attr/xattr.h> #include <sys/xattr.h>
#endif #endif


using namespace std; using namespace std;
Expand Down
5 changes: 5 additions & 0 deletions operations.h
Expand Up @@ -21,6 +21,11 @@
#define _FILE_OFFSET_BITS 64 #define _FILE_OFFSET_BITS 64
#define FUSE_USE_VERSION 26 #define FUSE_USE_VERSION 26


// ENOATTR is not blessed by POSIX. Darwin uses 93.
#ifndef ENOATTR
#define ENOATTR 93
#endif

#include <fuse.h> #include <fuse.h>


int gridfs_getattr(const char *path, struct stat *stbuf); int gridfs_getattr(const char *path, struct stat *stbuf);
Expand Down

0 comments on commit 5ae305e

Please sign in to comment.