Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2b30524

Browse files
committed
Forward-port revision 2.24.2.4 from the release21-maint branch:
Protect several more uses of constants with #ifdefs; these are necessary on (at least) SCO OpenServer 5. Fixes a non-SF-submitted bugreport by Michael Kent.
1 parent b269700 commit 2b30524

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Modules/termios.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,9 @@ static struct constant {
379379
{"IXON", IXON},
380380
{"IXANY", IXANY},
381381
{"IXOFF", IXOFF},
382+
#ifdef IMAXBEL
382383
{"IMAXBEL", IMAXBEL},
384+
#endif
383385

384386
/* struct termios.c_oflag constants */
385387
{"OPOST", OPOST},
@@ -505,12 +507,18 @@ static struct constant {
505507
{"ECHOE", ECHOE},
506508
{"ECHOK", ECHOK},
507509
{"ECHONL", ECHONL},
510+
#ifdef ECHOCTL
508511
{"ECHOCTL", ECHOCTL},
512+
#endif
509513
#ifdef ECHOPRT
510514
{"ECHOPRT", ECHOPRT},
511515
#endif
516+
#ifdef ECHOKE
512517
{"ECHOKE", ECHOKE},
518+
#endif
519+
#ifdef FLUSHO
513520
{"FLUSHO", FLUSHO},
521+
#endif
514522
{"NOFLSH", NOFLSH},
515523
{"TOSTOP", TOSTOP},
516524
#ifdef PENDIN
@@ -545,7 +553,9 @@ static struct constant {
545553
#ifdef VWERASE
546554
{"VWERASE", VWERASE},
547555
#endif
556+
#ifdef VLNEXT
548557
{"VLNEXT", VLNEXT},
558+
#endif
549559
{"VEOL2", VEOL2},
550560

551561

0 commit comments

Comments
 (0)