Olimex ISO will only work on Linux.
Adjust #define's accordingly, instead of saying where it won't work.
This commit is contained in:
parent
e37eb1be6c
commit
d8afaf3537
4
uif.c
4
uif.c
|
@ -25,7 +25,7 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
|
|
||||||
#if !(defined(__APPLE__) || defined(WIN32))
|
#if defined(__linux__)
|
||||||
#include <linux/serial.h>
|
#include <linux/serial.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -88,7 +88,7 @@ static void serial_destroy(transport_t tr_base)
|
||||||
free(tr);
|
free(tr);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !(defined(__APPLE__) || defined(WIN32))
|
#if defined(__linux__)
|
||||||
static int open_olimex_iso(const char *device)
|
static int open_olimex_iso(const char *device)
|
||||||
{
|
{
|
||||||
int fd = open(device, O_RDWR | O_NOCTTY);
|
int fd = open(device, O_RDWR | O_NOCTTY);
|
||||||
|
|
Loading…
Reference in New Issue