summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tools/ocbr/CMakeLists.txt5
-rw-r--r--src/tools/ocbr/ocbr.c2
-rw-r--r--src/tools/ocbr/ocbr_client.c1
-rw-r--r--src/tools/ocbr/ocbr_server.c1
4 files changed, 7 insertions, 2 deletions
diff --git a/src/tools/ocbr/CMakeLists.txt b/src/tools/ocbr/CMakeLists.txt
index 5dac3e63..f7ba66cd 100644
--- a/src/tools/ocbr/CMakeLists.txt
+++ b/src/tools/ocbr/CMakeLists.txt
@@ -4,6 +4,11 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR})
include_directories(${CMAKE_SOURCE_DIR}/include)
include_directories(${CMAKE_BINARY_DIR}/include)
+get_filename_component(CURRENT_SOURCE_PARENT_DIR
+ ${CMAKE_CURRENT_SOURCE_DIR} DIRECTORY)
+
+include_directories(${CURRENT_SOURCE_PARENT_DIR})
+
set(SOURCE_FILES
# Add source files here
ocbr.c
diff --git a/src/tools/ocbr/ocbr.c b/src/tools/ocbr/ocbr.c
index 47ec5d53..814f6226 100644
--- a/src/tools/ocbr/ocbr.c
+++ b/src/tools/ocbr/ocbr.c
@@ -39,6 +39,8 @@
#define _POSIX_C_SOURCE 199506L
#define __XSI_VISIBLE 500
+#include "time_utils.h"
+
#include <stdio.h>
#include <string.h>
#include <sys/time.h>
diff --git a/src/tools/ocbr/ocbr_client.c b/src/tools/ocbr/ocbr_client.c
index 8e319b2b..32554c38 100644
--- a/src/tools/ocbr/ocbr_client.c
+++ b/src/tools/ocbr/ocbr_client.c
@@ -37,7 +37,6 @@
*/
#include <ouroboros/dev.h>
-#include <ouroboros/time_utils.h>
#include <signal.h>
diff --git a/src/tools/ocbr/ocbr_server.c b/src/tools/ocbr/ocbr_server.c
index 2fa9f142..0583f1d2 100644
--- a/src/tools/ocbr/ocbr_server.c
+++ b/src/tools/ocbr/ocbr_server.c
@@ -37,7 +37,6 @@
*/
#include <ouroboros/dev.h>
-#include <ouroboros/time_utils.h>
#include <ouroboros/fccntl.h>
#include <stdbool.h>