Move to kernel style SPDX license identifiers
[lttng-tools.git] / src / common / compat / mman.h
CommitLineData
3fa91327 1/*
ab5be9fa 2 * Copyright (C) 2011 David Goulet <dgoulet@efficios.com>
3fa91327 3 *
ab5be9fa 4 * SPDX-License-Identifier: GPL-2.0-only
3fa91327 5 *
3fa91327
DG
6 */
7
8#ifndef _COMPAT_MMAN_H
9#define _COMPAT_MMAN_H
10
11#include <sys/mman.h>
12
13#ifdef __linux__
14
7657ae75 15#elif defined(__FreeBSD__)
3fa91327
DG
16
17#define MAP_GROWSDOWN 0
18#define MAP_ANONYMOUS MAP_ANON
19
a2773369 20#elif defined(__CYGWIN__) || defined(__sun__)
26676786
MD
21
22#define MAP_GROWSDOWN 0
23
3fa91327 24#else
7657ae75 25#error "Please add support for your OS."
a2773369 26#endif /* __linux__ */
3fa91327
DG
27
28#endif /* _COMPAT_MMAN_H */
This page took 0.067255 seconds and 5 git commands to generate.