blob: d81c94a4aad7567cd9de35fa4c93ee0f120edc9f [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001From c5caf52b9ed79da8916ef5722efe6df61a856e2f Mon Sep 17 00:00:00 2001
Brad Bishop6e60e8b2018-02-01 10:27:11 -05002From: 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>
Brad Bishop316dfdd2018-06-25 12:45:53 -04007
Brad Bishop6e60e8b2018-02-01 10:27:11 -05008---
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>