Annotation of embedaddon/lighttpd/src/sys-mmap.h, revision 1.1.1.2
1.1.1.2 ! misho 1: #ifndef LI_SYS_MMAP_H
! 2: #define LI_SYS_MMAP_H
! 3: #include "first.h"
! 4:
! 5: #if defined(HAVE_SYS_MMAN_H)
! 6: # include <sys/mman.h>
! 7: #else /* HAVE_SYS_MMAN_H */
! 8:
! 9: # define PROT_SHARED 0
! 10: # define MAP_SHARED 0
! 11: # define PROT_READ 0
! 12:
! 13: # define mmap(a, b, c, d, e, f) (-1)
! 14: # define munmap(a, b) (-1)
! 15:
! 16: #endif /* HAVE_SYS_MMAN_H */
! 17:
! 18: /* NetBSD 1.3.x needs it; also make it available if mmap() is not present */
! 19: #if !defined(MAP_FAILED)
! 20: # define MAP_FAILED ((char*)-1)
1.1 misho 21: #endif
22:
23: #endif
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>