Fix implicit declaration of ioctl on Solaris
Merge pull request #2177 from badboy/solaris-ioctl-warn-fix

Fix implicit declaration of ioctl on Solaris