diff options
author | MCApollo <34170230+MCApollo@users.noreply.github.com> | 2019-04-29 17:53:00 +0000 |
---|---|---|
committer | MCApollo <34170230+MCApollo@users.noreply.github.com> | 2019-04-29 17:53:00 +0000 |
commit | 59f5fd20e2f59ae186d5a461aef7782dd55e4e7b (patch) | |
tree | 10475faf0b6dcb812b64da679f4ae8ff01c45874 /data/lighttpd/lighttpd-1.4.53/src/sys-mmap.h | |
parent | f06e297cd175cca39745f6d1970225ae88aa68f1 (diff) |
Updated lighttpd.
Diffstat (limited to 'data/lighttpd/lighttpd-1.4.53/src/sys-mmap.h')
-rw-r--r-- | data/lighttpd/lighttpd-1.4.53/src/sys-mmap.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/data/lighttpd/lighttpd-1.4.53/src/sys-mmap.h b/data/lighttpd/lighttpd-1.4.53/src/sys-mmap.h new file mode 100644 index 000000000..51232ab55 --- /dev/null +++ b/data/lighttpd/lighttpd-1.4.53/src/sys-mmap.h @@ -0,0 +1,23 @@ +#ifndef LI_SYS_MMAP_H +#define LI_SYS_MMAP_H +#include "first.h" + +#if defined(HAVE_SYS_MMAN_H) +# include <sys/mman.h> +#else /* HAVE_SYS_MMAN_H */ + +# define PROT_SHARED 0 +# define MAP_SHARED 0 +# define PROT_READ 0 + +# define mmap(a, b, c, d, e, f) (-1) +# define munmap(a, b) (-1) + +#endif /* HAVE_SYS_MMAN_H */ + +/* NetBSD 1.3.x needs it; also make it available if mmap() is not present */ +#if !defined(MAP_FAILED) +# define MAP_FAILED ((char*)-1) +#endif + +#endif |