summaryrefslogtreecommitdiff
path: root/libattr
diff options
context:
space:
mode:
authorNathan Scott <nathans@sgi.com>2002-02-25 22:41:02 +0000
committerNathan Scott <nathans@sgi.com>2002-02-25 22:41:02 +0000
commitde366b9e522ee084a318aaca25c3dd916b5114db (patch)
tree1c5e6e9a58a4906abb733e413d7a9a11cfd1c8ee /libattr
parent27204a8361ff975ddf3a60b95cc24f4e5ec7bed8 (diff)
downloadattr-de366b9e522ee084a318aaca25c3dd916b5114db.tar.gz
Merge of xfs-cmds-2.4.18:slinx:112273a by nathans.
sync up with patch from AndreasG, mainly creates libattr.rpm/deb.
Diffstat (limited to 'libattr')
-rw-r--r--libattr/Makefile4
-rw-r--r--libattr/libattr.c4
-rw-r--r--libattr/syscalls.c5
3 files changed, 10 insertions, 3 deletions
diff --git a/libattr/Makefile b/libattr/Makefile
index f1b6e58..2307802 100644
--- a/libattr/Makefile
+++ b/libattr/Makefile
@@ -45,7 +45,9 @@ default: $(LTLIBRARY)
include $(BUILDRULES)
-install: default
+install:
+
+install-lib: default
$(INSTALL_LTLIB)
install-dev: default
diff --git a/libattr/libattr.c b/libattr/libattr.c
index e820a39..1ce22f9 100644
--- a/libattr/libattr.c
+++ b/libattr/libattr.c
@@ -38,8 +38,8 @@
#include <sys/types.h>
#include <asm/types.h>
-#include <xattr.h>
-#include <attributes.h>
+#include <attr/xattr.h>
+#include <attr/attributes.h>
#undef MAXNAMELEN
#define MAXNAMELEN 256
diff --git a/libattr/syscalls.c b/libattr/syscalls.c
index 75b8b94..7a4ba4c 100644
--- a/libattr/syscalls.c
+++ b/libattr/syscalls.c
@@ -31,6 +31,11 @@
* http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/
*/
+/*
+ * The use of the syscall() function is an additional level of
+ * indirection. For now, this avoids the dependency on kernel sources, though.
+ */
+
#include <unistd.h>
#if defined(__i386__)