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 (10 years, 8 months ago) by misho
Branches: lighttpd, MAIN
CVS tags: v1_4_35p0, v1_4_35, v1_4_33, HEAD
1.4.33

    1: #ifndef WIN32_MMAP_H
    2: #define WIN32_MMAP_H
    3: 
    4: #ifdef __WIN32
    5: 
    6: #define MAP_FAILED -1
    7: #define PROT_SHARED 0
    8: #define MAP_SHARED 0
    9: #define PROT_READ 0
   10: 
   11: #define mmap(a, b, c, d, e, f) (-1)
   12: #define munmap(a, b) (-1)
   13: 
   14: #include <windows.h>
   15: 
   16: #else
   17: #include <sys/mman.h>
   18: 
   19: #ifndef MAP_FAILED
   20: #define MAP_FAILED -1
   21: #endif
   22: #endif
   23: 
   24: #endif

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