]> mj.ucw.cz Git - libucw.git/commitdiff
No longer need to handle undefined MAP_FAILED.
authorMartin Mares <mj@ucw.cz>
Fri, 29 Mar 2002 16:33:26 +0000 (16:33 +0000)
committerMartin Mares <mj@ucw.cz>
Fri, 29 Mar 2002 16:33:26 +0000 (16:33 +0000)
lib/mmap.c

index 87a2047f7038df21268eb32ce0ce958ec6ab8223..2b057b6cf7da2071508b0393a4c06d19f4f136b7 100644 (file)
 #include <sys/stat.h>
 #include <sys/mman.h>
 
-#ifndef MAP_FAILED
-#warning System includes do not define MAP_FAILED.
-#define MAP_FAILED ((void *)-1L)
-#endif
-
 void *
 mmap_file(byte *name, unsigned *len, int writeable)
 {