Olimex ISO will only work on Linux.

Adjust #define's accordingly, instead of saying where it won't work.
This commit is contained in:
Jasper Lievisse Adriaanse 2010-12-06 12:28:08 +13:00 committed by Daniel Beer
parent e37eb1be6c
commit d8afaf3537
1 changed files with 2 additions and 2 deletions

4
uif.c
View File

@ -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);