2015-08-22 16:00:59 +00:00
|
|
|
#ifndef LI_SYS_MMAP_H
|
|
|
|
#define LI_SYS_MMAP_H
|
2016-03-19 15:14:35 +00:00
|
|
|
#include "first.h"
|
2005-02-20 14:27:00 +00:00
|
|
|
|
2015-08-22 16:00:59 +00:00
|
|
|
#if defined(HAVE_SYS_MMAN_H)
|
|
|
|
# include <sys/mman.h>
|
|
|
|
#else /* HAVE_SYS_MMAN_H */
|
2005-02-20 14:27:00 +00:00
|
|
|
|
2015-08-22 16:00:59 +00:00
|
|
|
# define PROT_SHARED 0
|
|
|
|
# define MAP_SHARED 0
|
|
|
|
# define PROT_READ 0
|
2005-02-20 14:27:00 +00:00
|
|
|
|
2015-08-22 16:00:59 +00:00
|
|
|
# define mmap(a, b, c, d, e, f) (-1)
|
|
|
|
# define munmap(a, b) (-1)
|
2005-02-20 14:27:00 +00:00
|
|
|
|
2015-08-22 16:00:59 +00:00
|
|
|
#endif /* HAVE_SYS_MMAN_H */
|
2005-02-20 14:27:00 +00:00
|
|
|
|
2015-08-22 16:00:59 +00:00
|
|
|
/* NetBSD 1.3.x needs it; also make it available if mmap() is not present */
|
|
|
|
#if !defined(MAP_FAILED)
|
|
|
|
# define MAP_FAILED ((char*)-1)
|
2005-02-20 14:27:00 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|