From 4c83950dfd71fd01aa16026159741c34c953216d Mon Sep 17 00:00:00 2001 From: Kamil Rytarowski Date: Sat, 6 Jun 2015 13:57:40 +0000 Subject: [PATCH] wtmp: Use _PATH_WTMPX again WTMPX_FILENAME is a GNU extension. _PATH_WTMPX is available on NetBSD. FreeBSD doesn't have it so it will not introduce problems there. --- src/wtmp-helper.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wtmp-helper.c b/src/wtmp-helper.c index 0c29d82..6290403 100644 --- a/src/wtmp-helper.c +++ b/src/wtmp-helper.c @@ -60,8 +60,8 @@ wtmp_helper_start (void) if (setutxdb (UTXDB_LOG, NULL) != 0) { return FALSE; } -#elif defined(WTMPX_FILENAME) - if (utmpxname (WTMPX_FILENAME) != 0) { +#elif defined(_PATH_WTMPX) + if (utmpxname (_PATH_WTMPX) != 0) { return FALSE; } @@ -212,8 +212,8 @@ wtmp_helper_entry_generator (GHashTable *users, const gchar * wtmp_helper_get_path_for_monitor (void) { -#if defined(WTMPX_FILENAME) - return WTMPX_FILENAME; +#if defined(_PATH_WTMPX) + return _PATH_WTMPX; #elif defined(__FreeBSD__) return "/var/log/utx.log"; #else -- 2.4.1