Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 1 | From c5caf52b9ed79da8916ef5722efe6df61a856e2f Mon Sep 17 00:00:00 2001 |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Tue, 28 Mar 2017 20:09:12 -0700 |
| 4 | Subject: [PATCH] sysdeputil.c: Fix with musl which does not have utmpx |
| 5 | |
| 6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 7 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 8 | --- |
| 9 | sysdeputil.c | 4 +++- |
| 10 | 1 file changed, 3 insertions(+), 1 deletion(-) |
| 11 | |
| 12 | diff --git a/sysdeputil.c b/sysdeputil.c |
| 13 | index 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> |