| 1 | /// corrected version, compiles correctly
|
|---|
| 2 | ///
|
|---|
| 3 |
|
|---|
| 4 | #include <cstdlib>
|
|---|
| 5 | #include <cstring>
|
|---|
| 6 | #include <iostream>
|
|---|
| 7 |
|
|---|
| 8 | //////////////// FIX STARTS HERE
|
|---|
| 9 | /// 1st issue
|
|---|
| 10 | #include <boost/asio/detail/pipe_select_interrupter.hpp>
|
|---|
| 11 |
|
|---|
| 12 | /// 2nd issue
|
|---|
| 13 | #ifdef __CYGWIN__
|
|---|
| 14 | #include <termios.h>
|
|---|
| 15 | #ifdef cfgetospeed
|
|---|
| 16 | #define __cfgetospeed__impl(tp) cfgetospeed(tp)
|
|---|
| 17 | #undef cfgetospeed
|
|---|
| 18 | inline speed_t cfgetospeed(const struct termios *tp)
|
|---|
| 19 | {
|
|---|
| 20 | //return ((tp)->c_ospeed);
|
|---|
| 21 | return __cfgetospeed__impl(tp);
|
|---|
| 22 | }
|
|---|
| 23 | #undef __cfgetospeed__impl
|
|---|
| 24 | #endif /// cfgetospeed is a macro
|
|---|
| 25 |
|
|---|
| 26 | /// 3rd issue
|
|---|
| 27 | #undef __CYGWIN__
|
|---|
| 28 | #include <boost/asio/detail/buffer_sequence_adapter.hpp>
|
|---|
| 29 | #define __CYGWIN__
|
|---|
| 30 | #endif
|
|---|
| 31 | //////////////// FIX ENDS HERE
|
|---|
| 32 |
|
|---|
| 33 | #include <boost/asio.hpp>
|
|---|
| 34 |
|
|---|
| 35 | int main(int argc, char* argv[])
|
|---|
| 36 | {
|
|---|
| 37 | return 0;
|
|---|
| 38 | }
|
|---|