Annotation of embedaddon/lighttpd/src/sys-mmap.h, revision 1.1.1.1

1.1       misho       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>