From: Sven Eden Date: Mon, 12 Jun 2017 11:29:24 +0000 (+0200) Subject: Prep v229.5: Make musl-libc utmp/wtmp stubs visible. X-Git-Tag: v231.3~126 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=f54b3c4300b9c2be764969607ea6574ff9dfe276;hp=a3b86c20543b69c165d1aa52178d72710f5c853e Prep v229.5: Make musl-libc utmp/wtmp stubs visible. --- diff --git a/src/shared/musl_missing.h b/src/shared/musl_missing.h index 37a7005c9..6a6f1e037 100644 --- a/src/shared/musl_missing.h +++ b/src/shared/musl_missing.h @@ -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 +# include +# include +# 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__)