diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2002-12-06 06:25:58 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2002-12-06 06:25:58 +0000 |
commit | c7078611fcf9abc940f49c269f60119577792220 (patch) | |
tree | 4b54c2f3e2cb201242920889b20c80b39e622d85 /cpukit/libcsupport/src/termios.c | |
parent | 2002-12-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff) | |
download | rtems-c7078611fcf9abc940f49c269f60119577792220.tar.bz2 |
2002-12-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: Add various checks to enhance portability.
* src/termios.c: Reflect changes to configure.ac.
Diffstat (limited to 'cpukit/libcsupport/src/termios.c')
-rw-r--r-- | cpukit/libcsupport/src/termios.c | 32 |
1 files changed, 21 insertions, 11 deletions
diff --git a/cpukit/libcsupport/src/termios.c b/cpukit/libcsupport/src/termios.c index 25b8f00c9a..c8af569600 100644 --- a/cpukit/libcsupport/src/termios.c +++ b/cpukit/libcsupport/src/termios.c @@ -34,23 +34,33 @@ /* * FreeBSD does not support a full POSIX termios so we have to help it out */ - -#if defined(__FreeBSD__) +#if !HAVE_DECL_XTABS #define XTABS 0 +#endif + +#if !HAVE_DECL_ONLRET #define ONLRET 0 -#define ONOCR 0 +#endif +#if !HAVE_DECL_ONOCR +#define ONOCR 0 +#endif +#if !HAVE_DECL_TABDLY #define TABDLY 0 -#define OLCUC 0 -#define ILCUC 0 -#define OCRNL 0 +#endif +#if !HAVE_DECL_OLCUC +#define OLCUC 0 +#endif +#if !HAVE_DECL_ILCUC +#define ILCUC 0 +#endif +#if !HAVE_DECL_OCRNL +#define OCRNL 0 +#endif +#if !HAVE_DECL_IUCLC #define IUCLC 0 #endif -/* - * Cygwin does not define these - */ - -#if defined(__CYGWIN__) +#if !HAVE_DECL_ECHOPRT #define ECHOPRT 0 #endif |