CRTSCTS not define when compiling as C99
问题 I'm writing some serial code on a raspberry pi and switched to C99. When I did I started getting the error "error: ‘CRTSCTS’ undeclared (first use in this function)" $ c99 -M serial01.c | grep termios.h /usr/include/termios.h /usr/include/arm-linux-gnueabihf/bits/termios.h \ $ gcc -M serial01.c | grep termios.h /usr/include/termios.h /usr/include/arm-linux-gnueabihf/bits/termios.h \ using -M reveals 2 termios.h headers. the former does not contain a definition for CRTSCTS and the latter does.