diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-09-17 14:11:12 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-09-17 14:11:12 +0200 |
commit | 94855cd69248f0f90b6c828588afa012adc8bd45 (patch) | |
tree | 6a164679824d29f5e825d78720cc905c8982d8be /lib/replace/system/terminal.h | |
parent | 323346f7b01314bdec418d585fae236f736068fa (diff) | |
download | samba-94855cd69248f0f90b6c828588afa012adc8bd45.tar.gz samba-94855cd69248f0f90b6c828588afa012adc8bd45.tar.bz2 samba-94855cd69248f0f90b6c828588afa012adc8bd45.zip |
Move common libraries from root to lib/.
Diffstat (limited to 'lib/replace/system/terminal.h')
-rw-r--r-- | lib/replace/system/terminal.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/lib/replace/system/terminal.h b/lib/replace/system/terminal.h new file mode 100644 index 0000000000..9ad601ace0 --- /dev/null +++ b/lib/replace/system/terminal.h @@ -0,0 +1,46 @@ +#ifndef _system_terminal_h +#define _system_terminal_h +/* + Unix SMB/CIFS implementation. + + terminal system include wrappers + + Copyright (C) Andrew Tridgell 2004 + + ** NOTE! The following LGPL license applies to the replace + ** library. This does NOT imply that all of Samba is released + ** under the LGPL + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 3 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, see <http://www.gnu.org/licenses/>. + +*/ + +#ifdef SUNOS4 +/* on SUNOS4 termios.h conflicts with sys/ioctl.h */ +#undef HAVE_TERMIOS_H +#endif + + +#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 + +#endif |