… | |
… | |
7 | #ifdef HAVE_XSETLOCALE |
7 | #ifdef HAVE_XSETLOCALE |
8 | # define X_LOCALE |
8 | # define X_LOCALE |
9 | # include <X11/Xlocale.h> |
9 | # include <X11/Xlocale.h> |
10 | #else |
10 | #else |
11 | # ifdef HAVE_SETLOCALE |
11 | # ifdef HAVE_SETLOCALE |
12 | # include <locale.h> |
12 | # include <clocale> |
13 | # endif |
13 | # endif |
14 | #endif /* HAVE_XLOCALE */ |
14 | #endif /* HAVE_XLOCALE */ |
15 | |
15 | |
16 | #if defined(PTYS_ARE_PTMX) && !defined(__CYGWIN32__) |
16 | #if defined(PTYS_ARE_PTMX) && !defined(__CYGWIN32__) |
17 | # include <sys/resource.h> /* for struct rlimit */ |
17 | # include <sys/resource.h> /* for struct rlimit */ |
… | |
… | |
53 | #else |
53 | #else |
54 | /* sgtty interface */ |
54 | /* sgtty interface */ |
55 | |
55 | |
56 | # define SET_TTYMODE(fd,tt) \ |
56 | # define SET_TTYMODE(fd,tt) \ |
57 | tt->sg.sg_ispeed = tt->sg.sg_ospeed = BAUDRATE, \ |
57 | tt->sg.sg_ispeed = tt->sg.sg_ospeed = BAUDRATE, \ |
58 | ioctl (fd, TIOCSETP, &(tt->sg)), \ |
58 | ioctl (fd, TIOCSETP, & (tt->sg)), \ |
59 | ioctl (fd, TIOCSETC, &(tt->tc)), \ |
59 | ioctl (fd, TIOCSETC, & (tt->tc)), \ |
60 | ioctl (fd, TIOCSLTC, &(tt->lc)), \ |
60 | ioctl (fd, TIOCSLTC, & (tt->lc)), \ |
61 | ioctl (fd, TIOCSETD, &(tt->line)), \ |
61 | ioctl (fd, TIOCSETD, & (tt->line)), \ |
62 | ioctl (fd, TIOCLSET, &(tt->local)) |
62 | ioctl (fd, TIOCLSET, & (tt->local)) |
63 | #endif /* HAVE_TERMIOS_H */ |
63 | #endif /* HAVE_TERMIOS_H */ |
64 | |
64 | |
65 | /* use the fastest baud-rate */ |
65 | /* use the fastest baud-rate */ |
66 | #ifdef B38400 |
66 | #ifdef B38400 |
67 | # define BAUDRATE B38400 |
67 | # define BAUDRATE B38400 |