From 674e56b376f6b6af726461205314eacde1382985 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Thu, 3 Jan 2013 08:01:43 -0800 Subject: [PATCH] Fixed compile issues on some Linux platforms --- sim_serial.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/sim_serial.c b/sim_serial.c index b8df7ab0..eab7d9e8 100644 --- a/sim_serial.c +++ b/sim_serial.c @@ -861,6 +861,13 @@ return; #elif defined (__unix__) || defined(__APPLE__) +#if defined(__linux__) +#include +#include +#include +#include +#endif /* __linux__ */ + /* UNIX implementation */ /* Enumerate the available serial ports. @@ -881,10 +888,6 @@ int ports = 0; memset(list, 0, max*sizeof(*list)); #if defined(__linux__) -#include -#include -#include -#include if (1) { struct dirent **namelist; int n;