Use only HAVE_SYS_IOCTL_H to decide whether to include sys/ioctl.h.