summaryrefslogtreecommitdiff
path: root/sessreg.c
diff options
context:
space:
mode:
Diffstat (limited to 'sessreg.c')
-rw-r--r--sessreg.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sessreg.c b/sessreg.c
index 03c05b6..164cda8 100644
--- a/sessreg.c
+++ b/sessreg.c
@@ -99,6 +99,13 @@ static const char *wtmpx_file = NULL;
static const char *utmpx_file = NULL;
#endif
#endif
+#ifndef WTMPX_FILE
+#define WTMPX_FILE _PATH_WTMPX
+#endif
+#ifndef UTMPX_FILE
+#define UTMPX_FILE _PATH_UTMPX
+#endif
+
static int utmp_none, wtmp_none;
/*
* BSD specific variables. To make life much easier for Xstartup/Xreset