mirror of
https://github.com/simh/simh.git
synced 2026-02-03 15:13:56 +00:00
Changed all internal #ifdef's which were conditional on __linux to be conditional on either __linux or __linux__. Some platforms (PPC) don't define __linux when gcc is invoked with -std=c99.
This commit is contained in:
@@ -861,7 +861,7 @@ return;
|
||||
|
||||
#elif defined (__unix__) || defined(__APPLE__)
|
||||
|
||||
#if defined(__linux__)
|
||||
#if defined(__linux) || defined(__linux__)
|
||||
#include <dirent.h>
|
||||
#include <libgen.h>
|
||||
#include <unistd.h>
|
||||
@@ -887,7 +887,7 @@ int port;
|
||||
int ports = 0;
|
||||
|
||||
memset(list, 0, max*sizeof(*list));
|
||||
#if defined(__linux__)
|
||||
#if defined(__linux) || defined(__linux__)
|
||||
if (1) {
|
||||
struct dirent **namelist;
|
||||
struct stat st;
|
||||
|
||||
Reference in New Issue
Block a user