blob: d81c94a4aad7567cd9de35fa4c93ee0f120edc9f [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001From c5caf52b9ed79da8916ef5722efe6df61a856e2f Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 28 Mar 2017 20:09:12 -0700
4Subject: [PATCH] sysdeputil.c: Fix with musl which does not have utmpx
5
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7
8---
9 sysdeputil.c | 4 +++-
10 1 file changed, 3 insertions(+), 1 deletion(-)
11
12diff --git a/sysdeputil.c b/sysdeputil.c
13index 06f01f4..a8cff3b 100644
14--- a/sysdeputil.c
15+++ b/sysdeputil.c
16@@ -58,7 +58,9 @@
17 #define VSF_SYSDEP_HAVE_SHADOW
18 #define VSF_SYSDEP_HAVE_USERSHELL
19 #define VSF_SYSDEP_HAVE_LIBCAP
20-#define VSF_SYSDEP_HAVE_UTMPX
21+#if defined(__GLIBC__)
22+ #define VSF_SYSDEP_HAVE_UTMPX
23+#endif
24
25 #define __USE_GNU
26 #include <utmpx.h>