File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / lighttpd / src / sys-mmap.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Oct 14 10:32:48 2013 UTC (11 years, 2 months ago) by misho
Branches: lighttpd, MAIN
CVS tags: v1_4_35p0, v1_4_35, v1_4_33, HEAD
1.4.33

#ifndef WIN32_MMAP_H
#define WIN32_MMAP_H

#ifdef __WIN32

#define MAP_FAILED -1
#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)

#include <windows.h>

#else
#include <sys/mman.h>

#ifndef MAP_FAILED
#define MAP_FAILED -1
#endif
#endif

#endif

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>