Should have included <rtems.h> before checking for ifdef RTEMS_UNIX. Bug report from Olivier Hainque <hainque@…> on SPARC Solaris 2.6.