open_olimex_iso() will only work on Linux, so don't bother calling it on non-Linux platforms.
This commit is contained in:
parent
82d580898c
commit
5e5b118e74
4
uif.c
4
uif.c
|
@ -150,8 +150,12 @@ transport_t uif_open(const char *device, uif_type_t type)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case UIF_TYPE_OLIMEX_ISO:
|
case UIF_TYPE_OLIMEX_ISO:
|
||||||
|
#if defined(__linux__)
|
||||||
printc("Trying to open Olimex (ISO) on %s...\n", device);
|
printc("Trying to open Olimex (ISO) on %s...\n", device);
|
||||||
tr->serial_fd = open_olimex_iso(device);
|
tr->serial_fd = open_olimex_iso(device);
|
||||||
|
#else
|
||||||
|
printc_err("uif_open: ioctl TIOCSSERIAL not supported on this platform\n");
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue