Move to kernel style SPDX license identifiers
[babeltrace.git] / src / compat / limits.h
CommitLineData
169e09d8 1/*
0235b0db 2 * SPDX-License-Identifier: MIT
169e09d8 3 *
0235b0db 4 * Copyright (C) 2014 Jérémie Galarneau <jeremie.galarneau@efficios.com>
169e09d8
JG
5 */
6
0235b0db
MJ
7#ifndef _BABELTRACE_LIMITS_H
8#define _BABELTRACE_LIMITS_H
9
169e09d8
JG
10#include <limits.h>
11
12#ifdef __linux__
13
14#define BABELTRACE_HOST_NAME_MAX HOST_NAME_MAX
15
16#elif defined(__FreeBSD__)
17
18#define BABELTRACE_HOST_NAME_MAX MAXHOSTNAMELEN
19
20#elif defined(_POSIX_HOST_NAME_MAX)
21
22#define BABELTRACE_HOST_NAME_MAX _POSIX_HOST_NAME_MAX
23
24#else
25
26#define BABELTRACE_HOST_NAME_MAX 256
27
28#endif /* __linux__, __FreeBSD__, _POSIX_HOST_NAME_MAX */
29
30#endif /* _BABELTRACE_LIMITS_H */
This page took 0.068202 seconds and 4 git commands to generate.