mirror of
https://github.com/open-simh/simh.git
synced 2026-02-26 17:03:56 +00:00
FIO: Emit reasonable error message when shm_open() API isn't available locally
This commit is contained in:
@@ -682,7 +682,10 @@ return -1;
|
||||
}
|
||||
|
||||
#if defined (__linux__) || defined (__APPLE__) || defined (__CYGWIN__) || defined (__FreeBSD__) || defined(__NetBSD__) || defined (__OpenBSD__)
|
||||
|
||||
#if defined (HAVE_SHM_OPEN)
|
||||
#include <sys/mman.h>
|
||||
#endif
|
||||
|
||||
struct SHMEM {
|
||||
int shm_fd;
|
||||
@@ -751,7 +754,7 @@ if ((*shmem)->shm_base == MAP_FAILED) {
|
||||
return SCPE_OK;
|
||||
#else
|
||||
*shmem = NULL;
|
||||
return SCPE_NOFNC;
|
||||
return sim_messagef (SCPE_NOFNC, "Shared memory not available - Missing shm_open() API\n");
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user