Browse Source

Fix MacEthernetTapAgent & Cmake integration

ZeroTier 6 years ago
parent
commit
18071e038e
2 changed files with 2 additions and 1 deletions
  1. 1 0
      osdep/CMakeLists.txt
  2. 1 1
      osdep/MacEthernetTapAgent.c

+ 1 - 0
osdep/CMakeLists.txt

@@ -54,6 +54,7 @@ target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_11)
 
 if(APPLE)
 	add_executable(MacEthernetTapAgent MacEthernetTapAgent.c MacEthernetTapAgent.h)
+	target_include_directories(MacEthernetTapAgent PRIVATE ${CMAKE_BINARY_DIR})
 endif(APPLE)
 
 

+ 1 - 1
osdep/MacEthernetTapAgent.c

@@ -92,7 +92,7 @@
 #include <netinet6/nd6.h>
 #include <ifaddrs.h>
 
-#include "../version.h"
+#include "version.h"
 #include "MacEthernetTapAgent.h"
 
 #ifndef SIOCAUTOCONF_START