From: Christos Zoulas Date: Tue, 13 Mar 2001 13:44:55 +0000 (+0000) Subject: provide MAP_FAILED for those who don't have it. X-Git-Tag: FILE3_35~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ee91c416c81c96d5b5f0a7bd70bce0b337d4ad29;p=file provide MAP_FAILED for those who don't have it. --- 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=';';