From: Christos Zoulas Date: Wed, 14 Mar 2001 14:33:56 +0000 (+0000) Subject: work around duh bug. from Alexander Mai; thanks. X-Git-Tag: FILE3_35~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7f34a88877b558e1695cb896d821097f1cc0b6b7;p=file work around duh bug. from Alexander Mai; thanks. --- diff --git a/src/apprentice.c b/src/apprentice.c index 12f3ad7d..dc06ccec 100644 --- a/src/apprentice.c +++ b/src/apprentice.c @@ -38,13 +38,22 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$Id: apprentice.c,v 1.35 2001/03/13 13:44:55 christos Exp $") +FILE_RCSID("@(#)$Id: apprentice.c,v 1.36 2001/03/14 14:33:56 christos Exp $") #endif /* lint */ #define EATAB {while (isascii((unsigned char) *l) && \ isspace((unsigned char) *l)) ++l;} #define LOWCASE(l) (isupper((unsigned char) (l)) ? \ tolower((unsigned char) (l)) : (l)) +/* + * Work around a bug in headers on Digital Unix. + * At least confirmed for: OSF1 V4.0 878 + */ +#if defined(__osf__) && defined(__DECC) +#ifdef MAP_FAILED +#undef MAP_FAILED +#endif +#endif #ifndef MAP_FAILED #define MAP_FAILED (void *) -1