libsys.a(rmtsyss.o)(.text+0x220): In function `SRMTSYS_Pioctl': : undefined reference to `errno' How odd, especially since errno.h is included not once but twice.