Bug 4417

Summary: hurd does not have CBAUD define, new getty.c fails to compile
Product: Busybox Reporter: Michael Tokarev <mjt+busybox>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: minor CC: busybox-cvs
Priority: P5    
Version: 1.19.x   
Target Milestone: ---   
Hardware: PC   
OS: Other   
Host: Target:
Build:
Attachments: patch to make CBAUD usage conditional

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.