From 5e5b118e7425356f9b35ff76662f8f7702a4adca Mon Sep 17 00:00:00 2001 From: Jasper Lievisse Adriaanse Date: Sat, 2 Apr 2011 11:01:19 +0200 Subject: [PATCH] open_olimex_iso() will only work on Linux, so don't bother calling it on non-Linux platforms. --- uif.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/uif.c b/uif.c index a74d8fb..fb28c72 100644 --- a/uif.c +++ b/uif.c @@ -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; }