From a06b94a1742ce5b217d1dd01ad25b9cc2fc9a5bc Mon Sep 17 00:00:00 2001 From: "briano%netscape.com" Date: Sat, 1 May 1999 02:10:39 +0000 Subject: [PATCH] Defined MAP_FAILED for all the platforms that don't have it. --- base/src/nsPageMgr.cpp | 9 +++++++++ xpcom/ds/nsPageMgr.cpp | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/base/src/nsPageMgr.cpp b/base/src/nsPageMgr.cpp index af6502f4006..4783cb07c6b 100644 --- a/base/src/nsPageMgr.cpp +++ b/base/src/nsPageMgr.cpp @@ -26,6 +26,15 @@ #elif defined(XP_UNIX) #include #include + +#ifndef MAP_FAILED +#if defined (__STDC__) && __STDC__ +#define MAP_FAILED ((void *) -1) +#else +#define MAP_FAILED ((char *) -1) +#endif +#endif + #endif /******************************************************************************/ diff --git a/xpcom/ds/nsPageMgr.cpp b/xpcom/ds/nsPageMgr.cpp index af6502f4006..4783cb07c6b 100644 --- a/xpcom/ds/nsPageMgr.cpp +++ b/xpcom/ds/nsPageMgr.cpp @@ -26,6 +26,15 @@ #elif defined(XP_UNIX) #include #include + +#ifndef MAP_FAILED +#if defined (__STDC__) && __STDC__ +#define MAP_FAILED ((void *) -1) +#else +#define MAP_FAILED ((char *) -1) +#endif +#endif + #endif /******************************************************************************/