diff options
author | Ryan Lortie <desrt@desrt.ca> | 2014-03-08 18:25:03 -0500 |
---|---|---|
committer | Ryan Lortie <desrt@desrt.ca> | 2014-03-19 09:46:48 -0400 |
commit | 74fec78ef16aec9d71d88aee1e421886d876a6d8 (patch) | |
tree | cd4465a4d7abec59d493b58664a42b062842c728 | |
parent | de240b9b2e819e4befe320e74bc8bf2f758f1685 (diff) | |
download | accountsservice-74fec78ef16aec9d71d88aee1e421886d876a6d8.tar.gz |
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.
https://bugs.freedesktop.org/show_bug.cgi?id=75938
-rw-r--r-- | src/wtmp-helper.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 |