Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux-serial-test.c: fix missing CMSPAR define on MIPS #20

Merged
merged 1 commit into from Nov 9, 2019
Merged

linux-serial-test.c: fix missing CMSPAR define on MIPS #20

merged 1 commit into from Nov 9, 2019

Conversation

ffontaine
Copy link
Contributor

This patch is an adaptation of
https://git.busybox.net/buildroot/diff/package/freerdp/0003-add-missing-define.patch?id=78cd32631e959e04b1a2f18be7b0757e21482438

linux-serial-test.c uses CMSPAR, which is defined by glibc in
bits/termios.h.

glibc has two flavours of bits/termios.h: a generic one and an
architecture-specific one. When installing, glibc will install the
architecture-specific file if it exists, otherwise it installs the
generic file. Only Alpha, MIPS, PPC and Sparc have their own
bits/termios.h.

The generic bits/termios.h, as well as the Alpha, PPC and Sparc flavours
do define CMSPAR. However, the MIPS flavour does not define it.

Define CMSPAR to the value from the generic value, which is also the
value known to the Linux kernel for MIPS.

Fixes:

Signed-off-by: Fabrice Fontaine fontaine.fabrice@gmail.com

This patch is an adaptation of
https://git.busybox.net/buildroot/diff/package/freerdp/0003-add-missing-define.patch?id=78cd32631e959e04b1a2f18be7b0757e21482438

linux-serial-test.c uses CMSPAR, which is defined by glibc in
bits/termios.h.

glibc has two flavours of bits/termios.h: a generic one and an
architecture-specific one. When installing, glibc will install the
architecture-specific file if it exists, otherwise it installs the
generic file. Only Alpha, MIPS, PPC and Sparc have their own
bits/termios.h.

The generic bits/termios.h, as well as the Alpha, PPC and Sparc flavours
do define CMSPAR. However, the MIPS flavour does not define it.

Define CMSPAR to the value from the generic value, which is also the
value known to the Linux kernel for MIPS.

Fixes:
 - http://autobuild.buildroot.org/results/1350cc46dcb285772b1a4c90aec6ba38fdb11e3c

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
@cbrake cbrake merged commit 4dc365c into cbrake:master Nov 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants