Don't you need #include <stdlib.h> as well, for exit?
While using newer llvm/clang we encountered some compiler errors about implicit function declarations and return type. setserial.c:639:2: error: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declarat ion] close(fd); ^ setserial.c:718:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] main(int argc, char **argv) ^ int setserial.c:728:14: error: call to undeclared...
setserial (v2.17) returns an exit value of 0 for two error cases (and maybe all?)...
setserial (v2.17) returns an exit value of 0 for two error cases (and maybe all?)...