summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPrzemyslaw Pawelczyk <przemoc@gmail.com>2015-09-02 23:32:01 +0200
committerPrzemyslaw Pawelczyk <przemoc@gmail.com>2015-09-02 23:32:01 +0200
commitc7e8ae67a35a6b578f9a756a59256d8c8933a046 (patch)
treead836113c7fa6e770b753a066a81b67fd2f6cbff
parent76760ad49ac9efdf3980cae2e816f899986f5eeb (diff)
parent3c3d9053ea088b160ac7c36c27960da254fba976 (diff)
Merge branch 'impro/switch-xattr-header'
Conflicts: NEWS
-rw-r--r--AUTHORS1
-rw-r--r--NEWS4
-rw-r--r--metaentry.c3
-rw-r--r--metastore.c3
4 files changed, 9 insertions, 2 deletions
diff --git a/AUTHORS b/AUTHORS
index 4e32aea..d6d099f 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -9,6 +9,7 @@ Current maintainer of unofficial metastore continuation is:
All other direct and indirect source code contributors are:
Sergio Callegari <sergio.callegari@gmail.com>
+ Ken Dawson <dawsonwu@rahul.net>
Dan Fandrich <dan@coneharvesters.com>
Romain Francoise <rfrancoise@debian.org>
Joey Hess <joey@kodama.kitenet.net>
diff --git a/NEWS b/NEWS
index fe6b12a..87a744e 100644
--- a/NEWS
+++ b/NEWS
@@ -7,6 +7,10 @@ Latest stuff (planned release date: 2015-09-??)
* Scripts in example/ directory do not require bash anymore and there
is a new example for post checkout hook.
+ * Dependency on libattr's xattr.h header has been removed.
+ As long as your libc provides sys/xattr.h (glibc does it since v2.3),
+ everything should be fine.
+
Old times (2007-2014)
------------------------------------------------------------------------
diff --git a/metaentry.c b/metaentry.c
index 1f45fca..3ed37e8 100644
--- a/metaentry.c
+++ b/metaentry.c
@@ -25,13 +25,14 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
-#include <attr/xattr.h>
+#include <sys/xattr.h>
#include <limits.h>
#include <dirent.h>
#include <sys/mman.h>
#include <utime.h>
#include <fcntl.h>
#include <stdint.h>
+#include <errno.h>
#include "metastore.h"
#include "metaentry.h"
diff --git a/metastore.c b/metastore.c
index 82aabc5..38901de 100644
--- a/metastore.c
+++ b/metastore.c
@@ -23,10 +23,11 @@
#include <sys/stat.h>
#include <getopt.h>
#include <utime.h>
-#include <attr/xattr.h>
+#include <sys/xattr.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+#include <errno.h>
#include "metastore.h"
#include "settings.h"