mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
Change serial plugin to only try to disable the IUCLC serial line flag on platforms supporting it. Fixes build problem on Hurd and FreeBSD.
This commit is contained in:
parent
a06f8a26d4
commit
e02ed2ca2c
@ -266,8 +266,14 @@ serial_bm_open(struct ipmi_intf * intf)
|
|||||||
|
|
||||||
/* no flow control */
|
/* no flow control */
|
||||||
ti.c_cflag &= ~CRTSCTS;
|
ti.c_cflag &= ~CRTSCTS;
|
||||||
ti.c_iflag &= ~(IGNBRK | IGNCR | INLCR | ICRNL | IUCLC | INPCK | ISTRIP
|
ti.c_iflag &= ~(IGNBRK | IGNCR | INLCR | ICRNL | INPCK | ISTRIP
|
||||||
| IXON | IXOFF | IXANY);
|
| IXON | IXOFF | IXANY);
|
||||||
|
#ifdef IUCLC
|
||||||
|
/* Only disable uppercase-to-lowercase mapping on input for
|
||||||
|
platforms supporting the flag. */
|
||||||
|
ti.c_iflag &= ~(IUCLC)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
ti.c_oflag &= ~(OPOST);
|
ti.c_oflag &= ~(OPOST);
|
||||||
ti.c_lflag &= ~(ICANON | ISIG | ECHO | ECHONL | NOFLSH);
|
ti.c_lflag &= ~(ICANON | ISIG | ECHO | ECHONL | NOFLSH);
|
||||||
|
@ -211,8 +211,13 @@ ipmi_serial_term_open(struct ipmi_intf * intf)
|
|||||||
|
|
||||||
/* no flow control */
|
/* no flow control */
|
||||||
ti.c_cflag &= ~CRTSCTS;
|
ti.c_cflag &= ~CRTSCTS;
|
||||||
ti.c_iflag &= ~(IGNBRK | IGNCR | INLCR | ICRNL | IUCLC | INPCK | ISTRIP
|
ti.c_iflag &= ~(IGNBRK | IGNCR | INLCR | ICRNL | INPCK | ISTRIP
|
||||||
| IXON | IXOFF | IXANY);
|
| IXON | IXOFF | IXANY);
|
||||||
|
#ifdef IUCLC
|
||||||
|
/* Only disable uppercase-to-lowercase mapping on input for
|
||||||
|
platforms supporting the flag. */
|
||||||
|
ti.c_iflag &= ~(IUCLC)
|
||||||
|
#endif
|
||||||
|
|
||||||
ti.c_oflag &= ~(OPOST);
|
ti.c_oflag &= ~(OPOST);
|
||||||
ti.c_lflag &= ~(ICANON | ISIG | ECHO | ECHONL | NOFLSH);
|
ti.c_lflag &= ~(ICANON | ISIG | ECHO | ECHONL | NOFLSH);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user