Add errno for ioctl error.
Include errno.h