On Tue, Feb 21, 2006 at 05:59:10PM +0100, Michael Banck wrote: > tags 299095 +patch > thanks > > Hi, > > attached is a patch which fixes the compilation of the ioctl syscalls on > hurd-i386 by essentially exempting that file.
OOC, what was the compiler error? > A more elegant fix would be to check whether the *xattr are available in > glibc and use them rather than the syscalls. Not sure how upstream > feels about this. It would be better to simply exclude syscalls.c from the build on your platform. From this patch I take it that the Hurd is using a libc that provides the Linux extended attribute system calls? That seems a bit odd, but OK. I can easily fix up the Makefile for you - what is the definition of PKG_PLATFORM in the generated attr/include/builddefs file from your build (is it "hurd"?) > --- libattr/syscalls.c 2002-09-06 05:15:41.000000000 +0200 > +++ libattr/syscalls.c.new 2006-02-21 17:51:08.000000000 +0100 > @@ -39,6 +39,7 @@ > #include <errno.h> > #include <unistd.h> > > +#ifndef __GNU__ > #if defined (__i386__) > # define HAVE_XATTR_SYSCALLS 1 > # define __NR_setxattr 226 > @@ -272,3 +273,4 @@ > { > return SYSCALL(__NR_fremovexattr, filedes, name); > } > +#endif /* __GNU__ */ cheers. -- Nathan -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]