diff --git a/CMakeLists.txt b/CMakeLists.txt index ba4f822..69590d8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,6 +23,7 @@ include(CMakeModules/git_info.cmake) include(CMakeModules/install_dirs.cmake) include(CheckCCompilerFlag) include(CheckCXXCompilerFlag) +include_directories(/usr/local/include) # Include custom FindXXX modules list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMakeModules") diff --git a/include/libfds/converters.h b/include/libfds/converters.h index 04c3e14..c508267 100644 --- a/include/libfds/converters.h +++ b/include/libfds/converters.h @@ -77,8 +77,8 @@ extern "C" { #endif // Check the size of double and float, this MUST be here!!! -static_assert(sizeof(double) == sizeof(uint64_t), "Double is not 8 bytes long!"); -static_assert(sizeof(float) == sizeof(uint32_t), "Float is not 4 bytes long!"); +_Static_assert(sizeof(double) == sizeof(uint64_t), "Double is not 8 bytes long!"); +_Static_assert(sizeof(float) == sizeof(uint32_t), "Float is not 4 bytes long!"); /** * \def FDS_CONVERT_EPOCHS_DIFF diff --git a/src/converters/converters.c b/src/converters/converters.c index caf9eb0..bacd67b 100644 --- a/src/converters/converters.c +++ b/src/converters/converters.c @@ -44,6 +44,9 @@ #include // snprintf #include // PRIi64, PRIu32,... #include // isnormal +#ifdef __OpenBSD__ +#include +#endif #include "branchlut2.h" int diff --git a/src/file/File_writer.cpp b/src/file/File_writer.cpp index a9dd7e4..c7ff784 100644 --- a/src/file/File_writer.cpp +++ b/src/file/File_writer.cpp @@ -10,6 +10,7 @@ #include #include +#include #include // lseek #include // lseek, lockf diff --git a/src/file/Io_async.hpp b/src/file/Io_async.hpp index d57d61b..4c5dbce 100644 --- a/src/file/Io_async.hpp +++ b/src/file/Io_async.hpp @@ -11,7 +11,11 @@ #ifndef LIBFDS_IO_ASYNC_HPP #define LIBFDS_IO_ASYNC_HPP +#ifdef __OpenBSD__ +#include +#else #include +#endif #include #include "Io_request.hpp"