summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabrice Fontaine <fontaine.fabrice@gmail.com>2019-05-03 07:48:06 +0200
committerFabrice Fontaine <fontaine.fabrice@gmail.com>2019-05-03 07:48:06 +0200
commit5b403d124c32c20fddc73bc5ae3c7e1febdf1bc4 (patch)
treeb94803e9161d1a983bb87e9de0a01e92f5f59257
parentfd3c8491d9dbe20bab67dfc19ebcfe763e9a01d8 (diff)
Fix missing defines _PATH_WTMPX/_PATH_UTMPX in musl
Downloaded from https://cgit.gentoo.org/proj/musl.git/tree/x11-apps/sessreg/files/sessreg-1.1.0-missing_path_wtmpx.patch Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> [Retrieved from: https://git.buildroot.net/buildroot/tree/package/x11r7/xapp_sessreg/0001-missing_path_wtmpx.patch] Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
-rw-r--r--sessreg.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sessreg.h b/sessreg.h
index 0f6101a..cdc1ace 100644
--- a/sessreg.h
+++ b/sessreg.h
@@ -103,6 +103,13 @@
# define TTYS_FILE "/etc/ttys"
#endif
+#ifndef _PATH_WTMPX
+# define _PATH_WTMPX "/var/log/wtmp"
+#endif
+#ifndef _PATH_UTMPX
+# define _PATH_UTMPX "/var/log/utmp"
+#endif
+
#ifndef WTMPX_FILE
# define WTMPX_FILE _PATH_WTMPX
#endif