You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
353 B
C
27 lines
353 B
C
15 years ago
|
#ifndef WIN32_MMAP_H
|
||
|
#define WIN32_MMAP_H
|
||
|
|
||
15 years ago
|
#include <lighttpd/settings.h>
|
||
15 years ago
|
|
||
|
#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
|