Merge pull request #179 from trapexit/fix-noxattr

fix building without xattr
This commit is contained in:
Antonio SJ Musumeci 2015-12-14 19:02:05 -05:00
commit 4adeb6348b
2 changed files with 7 additions and 7 deletions

View File

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

View File

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