* The problem with rpl_ioctl() and GNUlib for GNU/kFreeBSD
[1] must be resolved. It is beyond my understanding why
Simon is not attending to this problem, be it that he
prefers GNU/Hurd.
We only use ioctl from <stropts.h> anyway, what about this?
diff --git a/telnetd/telnetd.h b/telnetd/telnetd.h
index 7b5c033..b5b4a5b 100644
--- a/telnetd/telnetd.h
+++ b/telnetd/telnetd.h
@@ -44,7 +44,7 @@
#ifdef HAVE_SYS_PTYVAR_H
# include <sys/ptyvar.h>
#endif
-#ifdef HAVE_STROPTS_H
+#if defined HAVE_STROPTS_H && !defined HAVE_IOCTL
# include <stropts.h>
#endif
#include <sys/ioctl.h>