1From 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> 27