56f6aedeff16c4597d6d9db243ca5cbff7a0cd61
[gd/samba/.git] / source / lib / replace / system / terminal.h
1 #ifndef _system_terminal_h
2 #define _system_terminal_h
3 /* 
4    Unix SMB/CIFS implementation.
5
6    terminal system include wrappers
7
8    Copyright (C) Andrew Tridgell 2004
9    
10      ** NOTE! The following LGPL license applies to the replace
11      ** library. This does NOT imply that all of Samba is released
12      ** under the LGPL
13    
14    This library is free software; you can redistribute it and/or
15    modify it under the terms of the GNU Lesser General Public
16    License as published by the Free Software Foundation; either
17    version 3 of the License, or (at your option) any later version.
18
19    This library is distributed in the hope that it will be useful,
20    but WITHOUT ANY WARRANTY; without even the implied warranty of
21    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
22    Lesser General Public License for more details.
23
24    You should have received a copy of the GNU Lesser General Public
25    License along with this library; if not, write to the Free Software
26    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
27
28 */
29
30 #ifdef SUNOS4
31 /* on SUNOS4 termios.h conflicts with sys/ioctl.h */
32 #undef HAVE_TERMIOS_H
33 #endif
34
35
36 #if defined(HAVE_TERMIOS_H)
37 /* POSIX terminal handling. */
38 #include <termios.h>
39 #elif defined(HAVE_TERMIO_H)
40 /* Older SYSV terminal handling - don't use if we can avoid it. */
41 #include <termio.h>
42 #elif defined(HAVE_SYS_TERMIO_H)
43 /* Older SYSV terminal handling - don't use if we can avoid it. */
44 #include <sys/termio.h>
45 #endif
46
47 #endif