]> granicus.if.org Git - file/commitdiff
provide MAP_FAILED for those who don't have it.
authorChristos Zoulas <christos@zoulas.com>
Tue, 13 Mar 2001 13:44:55 +0000 (13:44 +0000)
committerChristos Zoulas <christos@zoulas.com>
Tue, 13 Mar 2001 13:44:55 +0000 (13:44 +0000)
src/apprentice.c

index f9225e7f001ef61342c6b65af20b12c7ffa6aa38..12f3ad7d6c45262cc31f8c3b0d6a44bf3fa73ce0 100644 (file)
@@ -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=';';