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:
parent
9356b0cb1e
commit
674e56b376
11
sim_serial.c
11
sim_serial.c
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user