Needs to be submitted upstream From 7cffa74bdb9598e4cb73f01e7ced9a5e51cb0502 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 6 Dec 2015 16:03:41 -0800 Subject: [PATCH] Accept Solaris WTMP_FILE if WTMP_FILENAME is not defined --- src/wtmp-helper.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/wtmp-helper.c b/src/wtmp-helper.c index 0c29d82..4067354 100644 --- a/src/wtmp-helper.c +++ b/src/wtmp-helper.c @@ -29,6 +29,10 @@ #include +#if defined(WTMPX_FILE) && !defined(WTMPX_FILENAME) /* Solaris */ +# define WTMPX_FILENAME WTMPX_FILE +#endif + typedef struct { guint64 frequency; gint64 time; -- 2.6.1