]> mj.ucw.cz Git - libucw.git/blobdiff - lib/mmap.c
Split page key to pos and fd. Wastes extra 4 bytes, but simplifies the code a lot.
[libucw.git] / lib / mmap.c
index 47147310ecf018fec0589168fe47a877d3253d50..23f69e6e36319d44426303435a9489a554f955fc 100644 (file)
 
 #include "lib.h"
 
 
 #include "lib.h"
 
+#ifndef MAP_FAILED
+#define MAP_FAILED ((void *)-1L)
+#endif
+
 void *
 mmap_file(byte *name, unsigned *len)
 {
 void *
 mmap_file(byte *name, unsigned *len)
 {