1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

[svn] Define MAP_FAILED if it's missing.

Published in <sxshexirelo.fsf@florida.arsdigita.de>.
This commit is contained in:
hniksic 2001-06-14 13:28:19 -07:00
parent e96497a6b4
commit 8f6b4f5bbb
2 changed files with 15 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2001-06-14 Hrvoje Niksic <hniksic@arsdigita.com>
* sysdep.h (MAP_FAILED): Provide MAP_FAILED for systems that don't
define it.
2001-06-09 Jan Prikryl <prikryl@cg.tuwien.ac.at>
* ftp.h: Provide correct prototype for ftp_parse_ls().

View File

@ -178,4 +178,14 @@ void *memcpy ();
#endif /* sun */
#endif /* STDC_HEADERS */
/* Some systems don't provide MAP_FAILED, a symbolic constant for the
value returned by mmap() when it doesn't work. Usually, this
constant should be -1. This only makes sense for files that use
mmap() and include sys/mman.h *before* sysdep.h, but doesn't hurt
others. */
#ifndef MAP_FAILED
# define MAP_FAILED ((void *) -1)
#endif
#endif /* SYSDEP_H */