Bug 4417 - hurd does not have CBAUD define, new getty.c fails to compile
Summary: hurd does not have CBAUD define, new getty.c fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: 1.19.x
Hardware: PC Other
: P5 minor
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-30 17:51 UTC by Michael Tokarev
Modified: 2011-10-30 20:29 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
patch to make CBAUD usage conditional (679 bytes, text/x-c++)
2011-10-30 17:51 UTC, Michael Tokarev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Tokarev 2011-10-30 17:51:48 UTC
Created attachment 3715 [details]
patch to make CBAUD usage conditional

On hurd, CBAUD is not defined in <termios.h>.  So new getty.c (which were rewritten in 1.19) fails to compile.

It looks like it is sufficient to check for CBAUD definition and enable that place conditionally, since busybox correctly uses cfsetspeed() to set speed of the device.  The attached patch does just that.