summaryrefslogtreecommitdiff
path: root/ace/os_include/termios.h
blob: 09a8760deb3428b0e8656bc74b17a02fbb6c0b54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/* -*- C++ -*- */

//=============================================================================
/**
 *  @file    termios.h
 *
 *  $Id$
 *
 *  @author Douglas C. Schmidt (schmidt@cs.wustl.edu)
 *  @author etc
 */
//=============================================================================

#ifndef ACE_OS_INCLUDE_TERMIOS_H
# define ACE_OS_INCLUDE_TERMIOS_H
# include "ace/pre.h"

# include "ace/config-all.h"

# if !defined (ACE_LACKS_PRAGMA_ONCE)
#   pragma once
# endif /* ACE_LACKS_PRAGMA_ONCE */

// Only include if platform/compiler provide the header.
# if !defined (ACE_LACKS_TERMIOS_H)
#   include /**/ <termios.h>
# endif /* !ACE_LACKS_TERMIOS_H */

// This is sorta interesting.  but termios.h not sys/termios.h should be correct.
# if defined (ACE_NEEDS_TERMIOS_H) // __QNX__
#   include /**/ <termios.h>
# endif /* ACE_NEEDS_TERMIOS_H) */

# if defined (ACE_NEEDS_SYS_MODEM_H) // HPUX
#   include /**/ <sys/modem.h>
# endif /* ACE_NEEDS_SYS_MODEM_H */

#   if !defined (VMIN)
#     define ACE_VMIN 4
#   else
#     define ACE_VMIN VMIN
#   endif /* VMIN */

#   if !defined (VTIME)
#     define ACE_VTIME 5
#   else
#     define ACE_VTIME VTIME
#   endif /* VTIME */

#endif /* ACE_OS_INCLUDE_TERMIOS_H */