commit df413e5a45072d6487d338b140b5717bfb6a181e
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Wed Mar 10 14:23:43 2010 +0100

    Define USE_TERMIOS on kfreebsd-* too.

---
 Imakefile   |    2 +-
 mdmdetect.c |    4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

--- a/Imakefile
+++ b/Imakefile
@@ -30,7 +30,7 @@ NETWORKCFLAGS = -DNO_NETWORK
 #ifdef NO_TERMIO
 TERMIOCFLAGS = -DNO_TERMIO
 #else
-#if defined(USE_TERMIOS) || defined(__FreeBSD__)
+#if defined(USE_TERMIOS) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__GNU__)
 TERMIOCFLAGS = -DUSE_TERMIOS
 #endif
 #endif
--- a/mdmdetect.c
+++ b/mdmdetect.c
@@ -38,7 +38,11 @@ static char rcsid[] = "$Id: mdmdetect.c,
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
+#ifdef USE_TERMIOS
+#include <termios.h>
+#else
 #include <termio.h>
+#endif
 #ifdef SVR4
 #include <sys/mkdev.h>
 #endif /* SVR4 */
