[SCons] define with_krb5 for SCons build
[lighttpd.git] / src / sys-mmap.h
blob51232ab556d57264b11c155dc159aeb2dd43cf5e
1 #ifndef LI_SYS_MMAP_H
2 #define LI_SYS_MMAP_H
3 #include "first.h"
5 #if defined(HAVE_SYS_MMAN_H)
6 # include <sys/mman.h>
7 #else /* HAVE_SYS_MMAN_H */
9 # define PROT_SHARED 0
10 # define MAP_SHARED 0
11 # define PROT_READ 0
13 # define mmap(a, b, c, d, e, f) (-1)
14 # define munmap(a, b) (-1)
16 #endif /* HAVE_SYS_MMAN_H */
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)
21 #endif
23 #endif