Update fstapi.c to latest from GTKWave

This commit is contained in:
Cary R 2019-10-20 16:26:56 -07:00
parent daf6b7a132
commit 055dcf60cb
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) static void fstWriterMmapSanity(void *pnt, const char *file, int line, const char *usage)
{ {
#if !defined(__CYGWIN__) && !defined(__MINGW32__)
if(pnt == MAP_FAILED) if(pnt == MAP_FAILED)
{ {
fprintf(stderr, "fstMmap() assigned to %s failed: errno: %d, file %s, line %d.\n", usage, errno, file, line); fprintf(stderr, "fstMmap() assigned to %s failed: errno: %d, file %s, line %d.\n", usage, errno, file, line);
perror("Why"); perror("Why");
pnt = NULL; pnt = NULL;
} }
#endif
} }