1
0
mirror of https://github.com/simh/simh.git synced 2026-01-11 23:52:58 +00:00

Fixed compile issues on some Linux platforms

This commit is contained in:
Mark Pizzolato 2013-01-03 08:01:43 -08:00
parent 9356b0cb1e
commit 674e56b376

View File

@ -861,6 +861,13 @@ return;
#elif defined (__unix__) || defined(__APPLE__)
#if defined(__linux__)
#include <dirent.h>
#include <libgen.h>
#include <unistd.h>
#include <sys/stat.h>
#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 <dirent.h>
#include <libgen.h>
#include <unistd.h>
#include <sys/stat.h>
if (1) {
struct dirent **namelist;
int n;