Permalink
Browse files

Improve Linux compilability

  • Loading branch information...
1 parent 85cd761 commit 5ae305ee22e423a40ce5103bcafd8f7a83149c8b @paulrosania paulrosania committed with Aug 22, 2010
Showing with 6 additions and 1 deletion.
  1. +1 −1 operations.cpp
  2. +5 −0 operations.h
View
2 operations.cpp
@@ -28,7 +28,7 @@
#include <mongo/client/connpool.h>
#ifdef __linux__
-#include <attr/xattr.h>
+#include <sys/xattr.h>
#endif
using namespace std;
View
5 operations.h
@@ -21,6 +21,11 @@
#define _FILE_OFFSET_BITS 64
#define FUSE_USE_VERSION 26
+// ENOATTR is not blessed by POSIX. Darwin uses 93.
+#ifndef ENOATTR
+#define ENOATTR 93
+#endif
+
#include <fuse.h>
int gridfs_getattr(const char *path, struct stat *stbuf);

0 comments on commit 5ae305e

Please sign in to comment.