chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
a3b86c2
)
Prep v229.5: Make musl-libc utmp/wtmp stubs visible.
author
Sven Eden
<yamakuzure@gmx.net>
Mon, 12 Jun 2017 11:29:24 +0000
(13:29 +0200)
committer
Sven Eden
<yamakuzure@gmx.net>
Fri, 16 Jun 2017 08:12:58 +0000
(10:12 +0200)
src/shared/musl_missing.h
patch
|
blob
|
history
diff --git
a/src/shared/musl_missing.h
b/src/shared/musl_missing.h
index 37a7005c90f91f85162d00d85fea24a28f2de4fc..6a6f1e037e78c3646f768650fbe03c617cac1b17 100644
(file)
--- 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
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__)
#endif // !defined(__GLIBC__)