Update fstapi.c to latest from GTKWave

This commit is contained in:
Cary R 2019-10-20 16:26:56 -07:00
parent 1069a0ef02
commit 077d8d6c4d
1 changed files with 2 additions and 0 deletions

View File

@ -955,12 +955,14 @@ fflush(xc->handle);
*/
static void fstWriterMmapSanity(void *pnt, const char *file, int line, const char *usage)
{
#if !defined(__CYGWIN__) && !defined(__MINGW32__)
if(pnt == MAP_FAILED)
{
fprintf(stderr, "fstMmap() assigned to %s failed: errno: %d, file %s, line %d.\n", usage, errno, file, line);
perror("Why");
pnt = NULL;
}
#endif
}