From 20e4c106a20dd10093376e6cee59a841c3c64125 Mon Sep 17 00:00:00 2001 From: nick black Date: Sat, 1 Feb 2020 04:12:54 -0500 Subject: [PATCH] FreeBSD build fixen #304 --- CMakeLists.txt | 7 ++++++- src/demo/demo.h | 4 ++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2db50b258..7d9ff3216 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -51,8 +51,9 @@ target_link_directories(notcurses if(NOT "${DISABLE_FFMPEG}") target_include_directories(notcurses - PRIVATE + PUBLIC "${AVFORMAT_INCLUDE_DIRS}" + "${AVUTIL_INCLUDE_DIRS}" "${SWSCALE_INCLUDE_DIRS}" ) target_link_libraries(notcurses @@ -225,6 +226,10 @@ target_include_directories(notcurses-demo PRIVATE include "${PROJECT_BINARY_DIR}/include" + PUBLIC + "${AVFORMAT_INCLUDE_DIRS}" + "${AVUTIL_INCLUDE_DIRS}" + "${SWSCALE_INCLUDE_DIRS}" ) target_link_libraries(notcurses-demo PRIVATE diff --git a/src/demo/demo.h b/src/demo/demo.h index d8460683d..a622583c5 100644 --- a/src/demo/demo.h +++ b/src/demo/demo.h @@ -16,6 +16,10 @@ extern "C" { #endif +#ifndef CLOCK_MONOTONIC_RAW +#define CLOCK_MONOTONIC_RAW CLOCK_MONOTONIC +#endif + // configured via command line option -- the base number of ns between demos extern struct timespec demodelay; extern float delaymultiplier; // scales demodelay (applied internally)