| 1 | /* |
| 2 | * Copyright (C) 2011 David Goulet <dgoulet@efficios.com> |
| 3 | * |
| 4 | * SPDX-License-Identifier: LGPL-2.1-only |
| 5 | * |
| 6 | */ |
| 7 | |
| 8 | #ifndef _COMPAT_MMAN_H |
| 9 | #define _COMPAT_MMAN_H |
| 10 | |
| 11 | #include <sys/mman.h> |
| 12 | |
| 13 | #ifdef __linux__ |
| 14 | |
| 15 | #elif defined(__FreeBSD__) |
| 16 | |
| 17 | #define MAP_GROWSDOWN 0 |
| 18 | #define MAP_ANONYMOUS MAP_ANON |
| 19 | |
| 20 | #elif defined(__CYGWIN__) || defined(__sun__) |
| 21 | |
| 22 | #define MAP_GROWSDOWN 0 |
| 23 | |
| 24 | #else |
| 25 | #error "Please add support for your OS." |
| 26 | #endif /* __linux__ */ |
| 27 | |
| 28 | #endif /* _COMPAT_MMAN_H */ |