[Tux3] [PATCH] tux3: fix compile error in linus-git
Daniel Phillips
phillips at phunq.net
Wed Jan 7 12:54:43 PST 2009
On Wednesday 07 January 2009 11:02, OGAWA Hirofumi wrote:
> OGAWA Hirofumi <hirofumi at mail.parknet.co.jp> writes:
>
> >> COW credential was added after 2.6.28. And we shouldn't add needless #ifdef.
> >> [BTW, if we really want to do this, we should add compat layer like
> >> compat.h of external network drivers.]
> >>
> >> Thanks.
> >
> > +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28)
> > ^^^^^^
> > +#define current_fsuid() ({ current->fsuid; })
> > +#define current_fsgid() ({ current->fsgid; })
> > #endif
> >
> > Ugh, this should be <= obviously.
> >
> > +#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,28)
>
> #ifndef current_fsuid
> ...
> #endif
>
> is better. I'll re-send final version.
>
> [BTW, the update for new version needs more change. With this, tux3
> would work. However, newly found bugs fixes have to apply.]
It is nicer, but the LINUX_VERSION_CODE makes it easier to scan for
these tracking changes and just delete them on a certain date, which
hopefully is not too far away.
Regards,
Daniel
_______________________________________________
Tux3 mailing list
Tux3 at tux3.org
http://mailman.tux3.org/cgi-bin/mailman/listinfo/tux3
More information about the Tux3
mailing list