chiark / gitweb /
Prep v229.5: Make musl-libc utmp/wtmp stubs visible.
authorSven Eden <yamakuzure@gmx.net>
Mon, 12 Jun 2017 11:29:24 +0000 (13:29 +0200)
committerSven Eden <yamakuzure@gmx.net>
Fri, 16 Jun 2017 08:12:58 +0000 (10:12 +0200)
src/shared/musl_missing.h

index 37a7005c90f91f85162d00d85fea24a28f2de4fc..6a6f1e037e78c3646f768650fbe03c617cac1b17 100644 (file)
@@ -85,6 +85,18 @@ typedef int (*__compar_fn_t) (const void *, const void *);
 typedef __compar_fn_t comparison_fn_t;
 #endif
 
+/* Make musl utmp/wtmp stubs visible if needed. */
+#ifdef HAVE_UTMP
+# include <paths.h>
+# include <utmp.h>
+# include <utmpx.h>
+# if defined(_PATH_UTMP) && !defined(_PATH_UTMPX)
+#   define _PATH_UTMPX _PATH_UTMP
+# endif
+# if defined(_PATH_WTMP) && !defined(_PATH_WTMPX)
+#   define _PATH_WTMPX _PATH_WTMP
+# endif
+#endif // HAVE_UTMP
 
 #endif // !defined(__GLIBC__)