/bits/termios.h:28:8: error: redefinition of ‘struct termios’
解决方案:
#define termios asmtermios #include <asm/termios.h> #undef termios #include <termios.h>
无论如何,这也可以让您摆脱 error: redefinition of 'struct termios' .
error: redefinition of 'struct termios'