$NetBSD$ --- readline/rltty.c.orig 2017-09-11 11:24:05.000000000 +0000 +++ readline/rltty.c @@ -31,6 +31,10 @@ #include #include +//#if defined (HAVE_SYS_IOCTL_H) +# include +//#endif /* HAVE_UNISTD_H * + #if defined (HAVE_UNISTD_H) # include #endif /* HAVE_UNISTD_H */