From c16d919aec42e3266ee43ee76fa44ed46376e54a Mon Sep 17 00:00:00 2001 From: Ryan Lortie Date: Sat, 8 Mar 2014 18:25:03 -0500 Subject: [PATCH 4/4] wtmp: unbreak the build on FreeBSD We hardcode the value of the file that we need to watch for wtmp changes on FreeBSD since it is not exposed in any header file. --- src/wtmp-helper.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wtmp-helper.c b/src/wtmp-helper.c index c1c1ae2..6cbdaa1 100644 --- a/src/wtmp-helper.c +++ b/src/wtmp-helper.c @@ -214,6 +214,8 @@ wtmp_helper_get_path_for_monitor (void) { #if defined(WTMPX_FILENAME) return WTMPX_FILENAME; +#elif defined(__FreeBSD__) + return "/var/log/utx.log"; #else #error Do not know which filename to watch for wtmp changes #endif -- 1.8.5.3