Added AIX/IRIX compatibility for endian detection. ok bcook@ deraadt@ beck@
Thanks to Jonas 'Sortie' Termansen for pointing the guard inconsistency out. ok beck@