fixed for current libs...still need to compile with -std=c90
This commit is contained in:
		| @@ -11,6 +11,7 @@ | |||||||
| #include "portable.h" | #include "portable.h" | ||||||
| #include "common.h" | #include "common.h" | ||||||
|  |  | ||||||
|  | #define __USE_MISC | ||||||
| #if USE_STTY == TERMIO | #if USE_STTY == TERMIO | ||||||
| #    include <termio.h> | #    include <termio.h> | ||||||
| #    include <sys/termio.h> | #    include <sys/termio.h> | ||||||
| @@ -630,14 +631,14 @@ static struct bauds { | |||||||
| 	{ "B19200", 19200, B19200, }, { "19200", 19200, B19200, }, | 	{ "B19200", 19200, B19200, }, { "19200", 19200, B19200, }, | ||||||
| 	{ "B38400", 38400, B38400, }, { "38400", 38400, B38400, }, | 	{ "B38400", 38400, B38400, }, { "38400", 38400, B38400, }, | ||||||
| 	{"EXTA", EXTA, EXTA}, | 	{"EXTA", EXTA, EXTA}, | ||||||
| 	{"EXTB", EXTB, EXTB}, | 	{"EXTB", EXTB, EXTB},  | ||||||
| 	{ (char *) 0, 0, 0 } | 	{ (char *) 0, 0, 0 } | ||||||
| }; | }; | ||||||
|  |  | ||||||
| struct s_term_dat { | struct s_term_dat { | ||||||
| 	char *name; | 	char *name; | ||||||
| 	uint or_dat; | 	uint8_t or_dat; | ||||||
| 	uint and_dat; | 	uint8_t and_dat; | ||||||
| }; | }; | ||||||
|  |  | ||||||
| #define FLAGS(X) { #X, X , 0 }, { "-" #X, 0, X } | #define FLAGS(X) { #X, X , 0 }, { "-" #X, 0, X } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user