curl-users
Re: [PATCH] xattr: add a configure check for xattr support
Date: Fri, 5 Nov 2010 14:49:06 +0100
On Fri November 5 2010 14:27:19 Kamil Dudka wrote:
> On Fri November 5 2010 09:55:24 Stefan Tomanek wrote:
> > Dies schrieb Daniel Stenberg (daniel_at_haxx.se):
> > > /usr/include/attr/xattr.h is the header libattr uses and provides.
> > >
> > > Even more reason to do a configure test for this, as I expect that
> > > lots of people won't have libattr present.
> >
> > Yes, I think that is a good idea. However, I'm not fluent in
> > automake/autoconf, so if anyone could drop the missing lines, I'd be
> > quite grateful :-)
>
> Attached is a proposal how it may look like.
tiny amendment:
diff --git a/src/xattr.c b/src/xattr.c
index 0865afe..d669ae4 100644
--- a/src/xattr.c
+++ b/src/xattr.c
@@ -1,3 +1,4 @@
+#include "setup.h"
#if USE_XATTR
#include <sys/types.h>
> Kamil
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-11-05