FreeBSD build fixen #304

This commit is contained in:
nick black 2020-02-01 04:12:54 -05:00
parent 4af5c79b2a
commit 20e4c106a2
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC
2 changed files with 10 additions and 1 deletions

View File

@ -51,8 +51,9 @@ target_link_directories(notcurses
if(NOT "${DISABLE_FFMPEG}") if(NOT "${DISABLE_FFMPEG}")
target_include_directories(notcurses target_include_directories(notcurses
PRIVATE PUBLIC
"${AVFORMAT_INCLUDE_DIRS}" "${AVFORMAT_INCLUDE_DIRS}"
"${AVUTIL_INCLUDE_DIRS}"
"${SWSCALE_INCLUDE_DIRS}" "${SWSCALE_INCLUDE_DIRS}"
) )
target_link_libraries(notcurses target_link_libraries(notcurses
@ -225,6 +226,10 @@ target_include_directories(notcurses-demo
PRIVATE PRIVATE
include include
"${PROJECT_BINARY_DIR}/include" "${PROJECT_BINARY_DIR}/include"
PUBLIC
"${AVFORMAT_INCLUDE_DIRS}"
"${AVUTIL_INCLUDE_DIRS}"
"${SWSCALE_INCLUDE_DIRS}"
) )
target_link_libraries(notcurses-demo target_link_libraries(notcurses-demo
PRIVATE PRIVATE

View File

@ -16,6 +16,10 @@
extern "C" { extern "C" {
#endif #endif
#ifndef CLOCK_MONOTONIC_RAW
#define CLOCK_MONOTONIC_RAW CLOCK_MONOTONIC
#endif
// configured via command line option -- the base number of ns between demos // configured via command line option -- the base number of ns between demos
extern struct timespec demodelay; extern struct timespec demodelay;
extern float delaymultiplier; // scales demodelay (applied internally) extern float delaymultiplier; // scales demodelay (applied internally)