[uClibc] build problem

Alan Hourihane alanh at fairlite.demon.co.uk
Tue Feb 17 11:07:38 UTC 2004


On Tue, Feb 17, 2004 at 03:48:26AM -0700, Erik Andersen wrote:
> On Tue Feb 17, 2004 at 10:34:47AM +0000, Alan Hourihane wrote:
> > This gets the build working on alpha again. 
> [----------snip----------]
> > -_syscall1(int, fdatasync, int, fd);
> > +#if defined (__alpha__)
> > +#define __NR___syscall_fdatasync __NR_osf_fdatasync
> > +#else
> > +#define __NR___syscall_fdatasync __NR_fdatasync
> > +#endif
> > +
> > +_syscall1(int, __syscall_fdatasync, int, fd);
> 
> Hmm.  Except this would then leave everyone without
> an fdatasync() symbol...  How about this instead?

Eh? Would it?

I was following the examples given in the getgid/pid/uid.c files. Doing
an #undef __NR_fdatasync on alpha would do nothing at all, it isn't
defined anyway. But your patch works too.

Alan.



More information about the uClibc mailing list