1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-29 05:21:00 +01:00

22586: fix warnings spotted on Cygwin

This commit is contained in:
Peter Stephenson 2006-08-04 13:38:26 +00:00
parent 99fa8b90b2
commit 596d38fb07
3 changed files with 21 additions and 1 deletions

View file

@ -2966,17 +2966,23 @@ build_cur_dump(char *nam, char *dump, char **names, int match, int map,
return 0;
}
/**/
#if defined(HAVE_SYS_MMAN_H) && defined(HAVE_MMAP) && defined(HAVE_MUNMAP)
#include <sys/mman.h>
/**/
#if defined(MAP_SHARED) && defined(PROT_READ)
/**/
#define USE_MMAP 1
/**/
#endif
/**/
#endif
/**/
#ifdef USE_MMAP
/* List of dump files mapped. */
@ -3060,6 +3066,7 @@ load_dump_file(char *dump, struct stat *sbuf, int other, int len)
#define zwcstat(f, b) (!!stat(f, b))
/**/
#endif
/* Try to load a function from one of the possible wordcode files for it.