File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -41,16 +41,21 @@ struct speed_t {
41
41
int baud ;
42
42
};
43
43
44
+ /* XXX(dinosaure): esperanto **does not** defines [speed_t] constants. */
45
+
44
46
long _speedtable (struct speed_t dst []) {
45
47
struct speed_t speedtable [] = {
48
+ #ifndef __ESPERANTO__
46
49
{B50 , 50 },
47
50
{B75 , 75 },
48
51
{B110 , 110 },
49
52
{B134 , 134 },
50
53
{B150 , 150 },
54
+ #endif // __ESPERANTO__
51
55
#ifdef B200
52
56
{B200 , 200 },
53
57
#endif
58
+ #ifndef __ESPERANTO__
54
59
{B300 , 300 },
55
60
{B600 , 600 },
56
61
{B1200 , 1200 },
@@ -60,6 +65,7 @@ long _speedtable(struct speed_t dst[]) {
60
65
{B9600 , 9600 },
61
66
{B19200 , 19200 },
62
67
{B38400 , 38400 },
68
+ #endif // __ESPERANTO__
63
69
#ifdef B57600
64
70
{B57600 , 57600 },
65
71
#endif
@@ -69,7 +75,9 @@ long _speedtable(struct speed_t dst[]) {
69
75
#ifdef B230400
70
76
{B230400 , 230400 },
71
77
#endif
78
+ #ifndef __ESPERANTO__
72
79
{B0 , 0 },
80
+ #endif // __ESPERANTO__
73
81
74
82
/* Linux extensions */
75
83
#ifdef B460800
You can’t perform that action at this time.
0 commit comments