common: move utils_create_lock_file to its own file
[lttng-tools.git] / src / common / compat / mman.hpp
... / ...
CommitLineData
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 */
This page took 0.025282 seconds and 4 git commands to generate.