From 8963bc3df6d3e9627c82171c3c931616f27fd528 Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Sat, 15 Sep 2012 20:11:20 +0200 Subject: Place NetBSD specific #defines in the proper place. For all the other databases (utmp, wtmp, lastlog) we already do it in sessreg.h. There's no reason why we should place the utmpx specific ones in sessreg.c. Signed-off-by: Ed Schouten Signed-off-by: Alan Coopersmith --- sessreg.c | 6 ------ sessreg.h | 7 +++++++ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/sessreg.c b/sessreg.c index 164cda8..6c559f5 100644 --- a/sessreg.c +++ b/sessreg.c @@ -99,12 +99,6 @@ 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; /* diff --git a/sessreg.h b/sessreg.h index a5e7f83..0a0a209 100644 --- a/sessreg.h +++ b/sessreg.h @@ -106,3 +106,10 @@ #ifndef TTYS_FILE # define TTYS_FILE "/etc/ttys" #endif + +#ifndef WTMPX_FILE +# define WTMPX_FILE _PATH_WTMPX +#endif +#ifndef UTMPX_FILE +# define UTMPX_FILE _PATH_UTMPX +#endif -- cgit v1.2.3