From: Martin Mares Date: Thu, 9 Sep 1999 20:02:39 +0000 (+0000) Subject: Compile with libc5. X-Git-Tag: holmes-import~1668 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=daa804a5b0a2e8925e4821df2afaabde8455b975;p=libucw.git Compile with libc5. --- diff --git a/lib/mmap.c b/lib/mmap.c index 47147310..23f69e6e 100644 --- a/lib/mmap.c +++ b/lib/mmap.c @@ -12,6 +12,10 @@ #include "lib.h" +#ifndef MAP_FAILED +#define MAP_FAILED ((void *)-1L) +#endif + void * mmap_file(byte *name, unsigned *len) {