Cbeam
Loading...
Searching...
No Matches
config.hpp
Go to the documentation of this file.
1/*
2Copyright (c) 2025 acrion innovations GmbH
3Authors: Stefan Zipproth, s.zipproth@acrion.ch
4
5This file is part of Cbeam, see https://github.com/acrion/cbeam and https://cbeam.org
6
7Cbeam is offered under a commercial and under the AGPL license.
8For commercial licensing, contact us at https://acrion.ch/sales. For AGPL licensing, see below.
9
10AGPL licensing:
11
12Cbeam is free software: you can redistribute it and/or modify
13it under the terms of the GNU Affero General Public License as published by
14the Free Software Foundation, either version 3 of the License, or
15(at your option) any later version.
16
17Cbeam is distributed in the hope that it will be useful,
18but WITHOUT ANY WARRANTY; without even the implied warranty of
19MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20GNU Affero General Public License for more details.
21
22You should have received a copy of the GNU Affero General Public License
23along with Cbeam. If not, see <https://www.gnu.org/licenses/>.
24*/
25
26#ifdef USING_CMAKE
27 #include "config_generated.hpp"
28#else
29 // Without CMake, we guess if certain headers are available on the system
30 #if defined(__GLIBC__) || defined(__APPLE__)
31 #define HAVE_DLFCN_H 1
32 #define HAVE_FCNTL_H 1
33 #define HAVE_PTHREAD_H 1
34 #define HAVE_PWD_H 1
35 #define HAVE_SYS_MMAN_H 1
36 #define HAVE_UNISTD_H 1
37 #endif
38
39 #if defined(__APPLE__)
40 #define HAVE_POSIX_SHM_H 1
41 #endif
42#endif