fdbmonitor: ifdef config path location

This commit is contained in:
Dave Cottlehuber 2020-04-07 19:28:18 +00:00
parent b2eb93f5f4
commit 28e58c672a
2 changed files with 8 additions and 0 deletions

View File

@ -146,6 +146,10 @@ set(SEED "0x${SEED_}" CACHE STRING "Random seed for testing")
# components
################################################################################
if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
include_directories(/usr/local/include)
endif()
include(CompileBoost)
add_subdirectory(flow)
add_subdirectory(fdbrpc)

View File

@ -1176,7 +1176,11 @@ int main(int argc, char** argv) {
// testPathOps(); return -1;
std::string lockfile = "/var/run/fdbmonitor.pid";
#ifdef __FreeBSD__
std::string _confpath = "/usr/local/etc/foundationdb/foundationdb.conf";
#else
std::string _confpath = "/etc/foundationdb/foundationdb.conf";
#endif
std::vector<const char *> additional_watch_paths;