]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Protect several more uses of constants with #ifdefs; these are necessary on
authorThomas Wouters <thomas@python.org>
Fri, 15 Jun 2001 11:58:49 +0000 (11:58 +0000)
committerThomas Wouters <thomas@python.org>
Fri, 15 Jun 2001 11:58:49 +0000 (11:58 +0000)
(at least) SCO OpenServer 5. Fixes a non-SF-submitted bugreport by Michael
Kent.

Modules/termios.c

index 54d72b2fb62a36f56368242acbe8b32aab432166..2c70a3bce22ceb82911659579a25a23c7c8bcc43 100644 (file)
@@ -379,7 +379,9 @@ static struct constant {
        {"IXON", IXON},
        {"IXANY", IXANY},
        {"IXOFF", IXOFF},
+#ifdef IMAXBEL
        {"IMAXBEL", IMAXBEL},
+#endif
 
        /* struct termios.c_oflag constants */
        {"OPOST", OPOST},
@@ -505,12 +507,18 @@ static struct constant {
        {"ECHOE", ECHOE},
        {"ECHOK", ECHOK},
        {"ECHONL", ECHONL},
+#ifdef ECHOCTL
        {"ECHOCTL", ECHOCTL},
+#endif
 #ifdef ECHOPRT
        {"ECHOPRT", ECHOPRT},
 #endif
+#ifdef ECHOKE
        {"ECHOKE", ECHOKE},
+#endif
+#endif FLUSHO
        {"FLUSHO", FLUSHO},
+#endif
        {"NOFLSH", NOFLSH},
        {"TOSTOP", TOSTOP},
 #ifdef PENDIN
@@ -545,7 +553,9 @@ static struct constant {
 #ifdef VWERASE
        {"VWERASE", VWERASE},
 #endif
+#ifdef VLNEXT
        {"VLNEXT", VLNEXT},
+#endif
        {"VEOL2", VEOL2},