1
0
mirror of https://github.com/open-simh/simh.git synced 2026-01-25 19:57:36 +00:00

makefile: dynamically determine if shm_open is available on the local system, Fix X11R7 library reference when available

This commit is contained in:
Mark Pizzolato
2015-04-28 16:29:23 -07:00
parent 041c866d67
commit cd799c9d3f
2 changed files with 12 additions and 1 deletions

View File

@@ -459,6 +459,7 @@ struct SHMEM {
t_stat sim_shmem_open (const char *name, size_t size, SHMEM **shmem, void **addr)
{
#ifdef HAVE_SHM_OPEN
*shmem = (SHMEM *)calloc (1, sizeof(**shmem));
*addr = NULL;
@@ -499,6 +500,9 @@ if ((*shmem)->shm_base == MAP_FAILED) {
}
*addr = (*shmem)->shm_base;
return SCPE_OK;
#else
return SCPE_NOFNC;
#endif
}
void sim_shmem_close (SHMEM *shmem)