From ee91c416c81c96d5b5f0a7bd70bce0b337d4ad29 Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Tue, 13 Mar 2001 13:44:55 +0000 Subject: [PATCH] provide MAP_FAILED for those who don't have it. --- src/apprentice.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/apprentice.c b/src/apprentice.c index f9225e7f..12f3ad7d 100644 --- a/src/apprentice.c +++ b/src/apprentice.c @@ -38,7 +38,7 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$Id: apprentice.c,v 1.34 2001/03/11 20:29:16 christos Exp $") +FILE_RCSID("@(#)$Id: apprentice.c,v 1.35 2001/03/13 13:44:55 christos Exp $") #endif /* lint */ #define EATAB {while (isascii((unsigned char) *l) && \ @@ -46,6 +46,9 @@ FILE_RCSID("@(#)$Id: apprentice.c,v 1.34 2001/03/11 20:29:16 christos Exp $") #define LOWCASE(l) (isupper((unsigned char) (l)) ? \ tolower((unsigned char) (l)) : (l)) +#ifndef MAP_FAILED +#define MAP_FAILED (void *) -1 +#endif #ifdef __EMX__ char PATHSEP=';'; -- 2.40.0