You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enabling USE_CUSTOM_BAUD in the Makefile and then building on MIPS fails with:
cc -Wall -g -DVERSION_STR=\"3.2a\" -DTTY_Q_SZ=0 -DHIGH_BAUD -DUSE_FLOCK -DHISTFILE=\".picocom_history\" -DLINENOISE -DUSE_CUSTOM_BAUD -o term.o -c term.c
In file included from term.c:73:0:
term.c: In function ‘term_get_baudrate’:
termios2.h:41:41: error: ‘struct termios’ has no member named ‘c_ispeed’
#define cfgetispeed_custom(tiop) ((tiop)->c_ispeed)
^
term.c:860:31: note: in expansion of macro ‘cfgetispeed_custom’
*ispeed = cfgetispeed_custom(&term.currtermios[i]);
^~~~~~~~~~~~~~~~~~
termios2.h:40:41: error: ‘struct termios’ has no member named ‘c_ospeed’
#define cfgetospeed_custom(tiop) ((tiop)->c_ospeed)
^
term.c:871:22: note: in expansion of macro ‘cfgetospeed_custom’
ospeed = cfgetospeed_custom(&term.currtermios[i]);
^~~~~~~~~~~~~~~~~~
Makefile:65: recipe for target 'term.o' failed
make: *** [term.o] Error 1
On MIPS, glibc's copy of struct termios does not have any c_ispeed or c_ospeed fields.
The text was updated successfully, but these errors were encountered:
As is clearly stated in the documentation, custom baudrate support is not available for all OS and architecture combinations. MIPS / Linux is obviously not one of them.
Naturally, any patch to fix this (and add support for MIPS/Linux) would be greatly appreciated.
I may try to add support myself at some point, but: (a) since MIPS libc does not have the c_ispeed and c_ospeed fields, the patch will not be totally trivial (requires some thought and work) (b) I don't have the hardware to test it on. Because of these, it would be preferable if someone better equipped would provide the patch...
Enabling
USE_CUSTOM_BAUD
in theMakefile
and then building on MIPS fails with:On MIPS, glibc's copy of
struct termios
does not have anyc_ispeed
orc_ospeed
fields.The text was updated successfully, but these errors were encountered: