| 57 | |
| 58 | #if defined(WIN32) || defined(_WIN32) |
| 59 | int openPort(char *comport) // doesn't matter for using pts devices |
| 60 | { |
| 61 | int fd; |
| 62 | fd = open(comport, O_RDWR); |
| 63 | |
| 64 | if (fd < 0) |
| 65 | { |
| 66 | perror(comport); |
| 67 | } |
| 68 | |
| 69 | return fd; |
| 70 | } |
| 71 | |
| 72 | #else |
| 73 | int openPort(char *comport) // doesn't matter for using pts devices |