summaryrefslogtreecommitdiffstats
path: root/source/include
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-12-22 23:38:37 +0000
committerJeremy Allison <jra@samba.org>1998-12-22 23:38:37 +0000
commite0eef9add5e51488ef072bb2212e3848a2b1d4ed (patch)
treeaa7c4f4850e8c83020790bed6c86d92b99d39898 /source/include
parent37ab7b878047d1165a4fe1f092bdc90b1779a9a8 (diff)
downloadsamba-e0eef9add5e51488ef072bb2212e3848a2b1d4ed.tar.gz
samba-e0eef9add5e51488ef072bb2212e3848a2b1d4ed.tar.xz
samba-e0eef9add5e51488ef072bb2212e3848a2b1d4ed.zip
Configure fixes for QNX and NCR.
Jeremy.
Diffstat (limited to 'source/include')
-rw-r--r--source/include/config.h.in6
-rw-r--r--source/include/includes.h9
2 files changed, 14 insertions, 1 deletions
diff --git a/source/include/config.h.in b/source/include/config.h.in
index c71ed429539..63db73cf51f 100644
--- a/source/include/config.h.in
+++ b/source/include/config.h.in
@@ -792,6 +792,9 @@
/* Define if you have the <sys/syscall.h> header file. */
#undef HAVE_SYS_SYSCALL_H
+/* Define if you have the <sys/termio.h> header file. */
+#undef HAVE_SYS_TERMIO_H
+
/* Define if you have the <sys/time.h> header file. */
#undef HAVE_SYS_TIME_H
@@ -807,6 +810,9 @@
/* Define if you have the <syscall.h> header file. */
#undef HAVE_SYSCALL_H
+/* Define if you have the <termio.h> header file. */
+#undef HAVE_TERMIO_H
+
/* Define if you have the <termios.h> header file. */
#undef HAVE_TERMIOS_H
diff --git a/source/include/includes.h b/source/include/includes.h
index ab85edec95e..a8c3f68203e 100644
--- a/source/include/includes.h
+++ b/source/include/includes.h
@@ -206,8 +206,15 @@
#include <netinet/tcp.h>
#endif
-#ifdef HAVE_TERMIOS_H
+#if defined(HAVE_TERMIOS_H)
+/* POSIX terminal handling. */
#include <termios.h>
+#elif defined(HAVE_TERMIO_H)
+/* Older SYSV terminal handling - don't use if we can avoid it. */
+#include <termio.h>
+#elif defined(HAVE_SYS_TERMIO_H)
+/* Older SYSV terminal handling - don't use if we can avoid it. */
+#include <sys/termio.h>
#endif
#if HAVE_DIRENT_H