Solaris/Irix portability hacks for reversion