open_olimex_iso() will only work on Linux, so don't bother calling it on non-Linux platforms.

This commit is contained in:
Jasper Lievisse Adriaanse 2011-04-02 11:01:19 +02:00 committed by Daniel Beer
parent 82d580898c
commit 5e5b118e74
1 changed files with 4 additions and 0 deletions

4
uif.c
View File

@ -150,8 +150,12 @@ transport_t uif_open(const char *device, uif_type_t type)
break;
case UIF_TYPE_OLIMEX_ISO:
#if defined(__linux__)
printc("Trying to open Olimex (ISO) on %s...\n", device);
tr->serial_fd = open_olimex_iso(device);
#else
printc_err("uif_open: ioctl TIOCSSERIAL not supported on this platform\n");
#endif
break;
}