Wrap several more of the constants in #ifdef/#endif for FreeBSD; at least

some fairly recent versions have an anaemic selection of terminal-control
symbols.

This closes SF bug #405567.
This commit is contained in:
Fred Drake 2001-03-03 18:08:52 +00:00
parent 4211925453
commit d85556c663
1 changed files with 58 additions and 0 deletions

View File

@ -358,7 +358,9 @@ static struct constant {
{"INLCR", INLCR}, {"INLCR", INLCR},
{"IGNCR", IGNCR}, {"IGNCR", IGNCR},
{"ICRNL", ICRNL}, {"ICRNL", ICRNL},
#ifdef IUCLC
{"IUCLC", IUCLC}, {"IUCLC", IUCLC},
#endif
{"IXON", IXON}, {"IXON", IXON},
{"IXANY", IXANY}, {"IXANY", IXANY},
{"IXOFF", IXOFF}, {"IXOFF", IXOFF},
@ -366,40 +368,96 @@ static struct constant {
/* struct termios.c_oflag constants */ /* struct termios.c_oflag constants */
{"OPOST", OPOST}, {"OPOST", OPOST},
#ifdef OLCUC
{"OLCUC", OLCUC}, {"OLCUC", OLCUC},
#endif
{"ONLCR", ONLCR}, {"ONLCR", ONLCR},
#ifdef OCRNL
{"OCRNL", OCRNL}, {"OCRNL", OCRNL},
#endif
#ifdef ONOCR
{"ONOCR", ONOCR}, {"ONOCR", ONOCR},
#endif
#ifdef ONLRET
{"ONLRET", ONLRET}, {"ONLRET", ONLRET},
#endif
#ifdef OFILL
{"OFILL", OFILL}, {"OFILL", OFILL},
#endif
#ifdef OFDEL
{"OFDEL", OFDEL}, {"OFDEL", OFDEL},
#endif
#ifdef NLDLY
{"NLDLY", NLDLY}, {"NLDLY", NLDLY},
#endif
#ifdef CRDLY
{"CRDLY", CRDLY}, {"CRDLY", CRDLY},
#endif
#ifdef TABDLY
{"TABDLY", TABDLY}, {"TABDLY", TABDLY},
#endif
#ifdef BSDLY
{"BSDLY", BSDLY}, {"BSDLY", BSDLY},
#endif
#ifdef VTDLY
{"VTDLY", VTDLY}, {"VTDLY", VTDLY},
#endif
#ifdef FFDLY
{"FFDLY", FFDLY}, {"FFDLY", FFDLY},
#endif
/* struct termios.c_oflag-related values (delay mask) */ /* struct termios.c_oflag-related values (delay mask) */
#ifdef NL0
{"NL0", NL0}, {"NL0", NL0},
#endif
#ifdef NL1
{"NL1", NL1}, {"NL1", NL1},
#endif
#ifdef CR0
{"CR0", CR0}, {"CR0", CR0},
#endif
#ifdef CR1
{"CR1", CR1}, {"CR1", CR1},
#endif
#ifdef CR2
{"CR2", CR2}, {"CR2", CR2},
#endif
#ifdef CR3
{"CR3", CR3}, {"CR3", CR3},
#endif
#ifdef TAB0
{"TAB0", TAB0}, {"TAB0", TAB0},
#endif
#ifdef TAB1
{"TAB1", TAB1}, {"TAB1", TAB1},
#endif
#ifdef TAB2
{"TAB2", TAB2}, {"TAB2", TAB2},
#endif
#ifdef TAB3
{"TAB3", TAB3}, {"TAB3", TAB3},
#endif
#ifdef XTABS #ifdef XTABS
{"XTABS", XTABS}, {"XTABS", XTABS},
#endif #endif
#ifdef BS0
{"BS0", BS0}, {"BS0", BS0},
#endif
#ifdef BS1
{"BS1", BS1}, {"BS1", BS1},
#endif
#ifdef VT0
{"VT0", VT0}, {"VT0", VT0},
#endif
#ifdef VT1
{"VT1", VT1}, {"VT1", VT1},
#endif
#ifdef FF0
{"FF0", FF0}, {"FF0", FF0},
#endif
#ifdef FF1
{"FF1", FF1}, {"FF1", FF1},
#endif
/* struct termios.c_cflag constants */ /* struct termios.c_cflag constants */
{"CSIZE", CSIZE}, {"CSIZE", CSIZE},