Defined MAP_FAILED for all the platforms that don't have it.

This commit is contained in:
briano%netscape.com 1999-05-01 02:10:39 +00:00
parent 2de9c5ed4d
commit 2760eda281
2 changed files with 18 additions and 0 deletions

View File

@ -26,6 +26,15 @@
#elif defined(XP_UNIX)
#include <sys/mman.h>
#include <fcntl.h>
#ifndef MAP_FAILED
#if defined (__STDC__) && __STDC__
#define MAP_FAILED ((void *) -1)
#else
#define MAP_FAILED ((char *) -1)
#endif
#endif
#endif
/******************************************************************************/

View File

@ -26,6 +26,15 @@
#elif defined(XP_UNIX)
#include <sys/mman.h>
#include <fcntl.h>
#ifndef MAP_FAILED
#if defined (__STDC__) && __STDC__
#define MAP_FAILED ((void *) -1)
#else
#define MAP_FAILED ((char *) -1)
#endif
#endif
#endif
/******************************************************************************/