blob: 6c68989d3b606392ee6699ca29e511d33c8fa85c [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---
Patrick Williams520786c2023-06-25 16:20:36 -05009Upstream-Status: Pending
10
Brad Bishop6e60e8b2018-02-01 10:27:11 -050011 sysdeputil.c | 4 +++-
12 1 file changed, 3 insertions(+), 1 deletion(-)
13
14diff --git a/sysdeputil.c b/sysdeputil.c
15index 06f01f4..a8cff3b 100644
16--- a/sysdeputil.c
17+++ b/sysdeputil.c
18@@ -58,7 +58,9 @@
19 #define VSF_SYSDEP_HAVE_SHADOW
20 #define VSF_SYSDEP_HAVE_USERSHELL
21 #define VSF_SYSDEP_HAVE_LIBCAP
22-#define VSF_SYSDEP_HAVE_UTMPX
23+#if defined(__GLIBC__)
24+ #define VSF_SYSDEP_HAVE_UTMPX
25+#endif
26
27 #define __USE_GNU
28 #include <utmpx.h>