aboutsummaryrefslogtreecommitdiffstats
path: root/main/sessreg/missing_path_wtmpx.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/sessreg/missing_path_wtmpx.patch')
-rw-r--r--main/sessreg/missing_path_wtmpx.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/main/sessreg/missing_path_wtmpx.patch b/main/sessreg/missing_path_wtmpx.patch
index dac21245f1..0514de59b7 100644
--- a/main/sessreg/missing_path_wtmpx.patch
+++ b/main/sessreg/missing_path_wtmpx.patch
@@ -10,3 +10,15 @@ diff -Naur sessreg-1.0.8.orig/sessreg.h sessreg-1.0.8/sessreg.h
+# define _PATH_WTMPX "/var/log/wtmp"
+#endif
+
+diff --git a/sessreg.h b/sessreg.h
+index b3bbac9..d0c0105 100644
+--- a/sessreg.h
++++ b/sessreg.h
+@@ -114,3 +114,7 @@
+ # define _PATH_WTMPX "/var/log/wtmp"
+ #endif
+
++#ifndef _PATH_UTMPX
++# define _PATH_UTMPX "/var/log/utmp"
++#endif
++