X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fcompat%2Fmman.hpp;fp=src%2Fcommon%2Fcompat%2Fmman.hpp;h=61d27b8b02b98fa0c05392ec486273500eb285c2;hb=c9e313bc594f40a86eed237dce222c0fc99c957f;hp=0000000000000000000000000000000000000000;hpb=4878de5c7deb512bbdac4fdfc498907efa06fb7c;p=lttng-tools.git diff --git a/src/common/compat/mman.hpp b/src/common/compat/mman.hpp new file mode 100644 index 000000000..61d27b8b0 --- /dev/null +++ b/src/common/compat/mman.hpp @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2011 David Goulet + * + * SPDX-License-Identifier: LGPL-2.1-only + * + */ + +#ifndef _COMPAT_MMAN_H +#define _COMPAT_MMAN_H + +#include + +#ifdef __linux__ + +#elif defined(__FreeBSD__) + +#define MAP_GROWSDOWN 0 +#define MAP_ANONYMOUS MAP_ANON + +#elif defined(__CYGWIN__) || defined(__sun__) + +#define MAP_GROWSDOWN 0 + +#else +#error "Please add support for your OS." +#endif /* __linux__ */ + +#endif /* _COMPAT_MMAN_H */