Fix implicit declaration of ioctl on Solaris
Include stropts only if __sun is defined.