another option would be to manually redefine the linux termios2 structure in serial.c (as, say, struct linux_termios2) (and potentially some other bits, BOTHER, LINUX_NCCS...) and not #include termbits.h so that we avoid any conflict for struct termios between linux & (g)libc and trigger setting / getting speed only if TCSET2 and/or TCGET2 are defined