]> granicus.if.org Git - file/commitdiff
work around duh bug. from Alexander Mai; thanks.
authorChristos Zoulas <christos@zoulas.com>
Wed, 14 Mar 2001 14:33:56 +0000 (14:33 +0000)
committerChristos Zoulas <christos@zoulas.com>
Wed, 14 Mar 2001 14:33:56 +0000 (14:33 +0000)
src/apprentice.c

index 12f3ad7d6c45262cc31f8c3b0d6a44bf3fa73ce0..dc06ccecda8416d3dc072fa75637f7c4113c8062 100644 (file)
 #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