Are you saying that the NetBSD/sparc compiler doesn't define __sparc__?! i hope not: langhorne-creek ~> gcc -E -dM - < /dev/null #define __NetBSD__ 1 #define __KPRINTF_ATTRIBUTE__ 1 #define __sparc 1 #define __GNUC_MINOR__ 90 #define sparc 1 #define __unix 1 #define __unix__ 1 #define __GNUC__ 2 #define __sparc__ 1 #define unix 1