diff options
author | Thomas Klausner <tk@giga.or.at> | 2012-06-15 11:36:07 +0200 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2012-07-08 10:06:02 -0700 |
commit | 1d609a5daa3fa1553111076561a1f800e462156d (patch) | |
tree | 6fe507c0089625f3315e4f02e5d46aed1951c5ea | |
parent | 7ac51a652bfb8423604bb1a120568d44516c9de9 (diff) |
Fix compilation on NetBSD - undefined *TMPX paths
Make sure file name defines exist on NetBSD.
https://bugs.freedesktop.org/show_bug.cgi?id=50940
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | sessreg.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |