Browse Source

Merge pull request #179 from trapexit/fix-noxattr

fix building without xattr
pull/180/head
Antonio SJ Musumeci 9 years ago
parent
commit
4adeb6348b
  1. 6
      src/fs_xattr.cpp
  2. 6
      src/getxattr.cpp

6
src/fs_xattr.cpp

@ -22,11 +22,11 @@
THE SOFTWARE. THE SOFTWARE.
*/ */
#include <errno.h>
#include <fcntl.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/types.h>
#include <attr/xattr.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <fcntl.h>
#include <sys/types.h>
#include <unistd.h> #include <unistd.h>
#include <string> #include <string>

6
src/getxattr.cpp

@ -29,10 +29,10 @@
#include <set> #include <set>
#include <algorithm> #include <algorithm>
#include <stdio.h>
#include <errno.h> #include <errno.h>
#include <sys/types.h>
#include <stdio.h>
#include <string.h> #include <string.h>
#include <sys/types.h>
#include <unistd.h> #include <unistd.h>
#include "config.hpp" #include "config.hpp"
@ -62,7 +62,7 @@ _lgetxattr(const string &path,
return ((rv == -1) ? -errno : rv); return ((rv == -1) ? -errno : rv);
#else #else
return -ENOSUP;
return -ENOTSUP;
#endif #endif
} }

Loading…
Cancel
Save