aboutsummaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-daemons/vsftpd/vsftpd-3.0.3/0001-sysdeputil.c-Fix-with-musl-which-does-not-have-utmpx.patch
blob: d81c94a4aad7567cd9de35fa4c93ee0f120edc9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From c5caf52b9ed79da8916ef5722efe6df61a856e2f Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Tue, 28 Mar 2017 20:09:12 -0700
Subject: [PATCH] sysdeputil.c: Fix with musl which does not have utmpx

Signed-off-by: Khem Raj <raj.khem@gmail.com>

---
 sysdeputil.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/sysdeputil.c b/sysdeputil.c
index 06f01f4..a8cff3b 100644
--- a/sysdeputil.c
+++ b/sysdeputil.c
@@ -58,7 +58,9 @@
 #define VSF_SYSDEP_HAVE_SHADOW
 #define VSF_SYSDEP_HAVE_USERSHELL
 #define VSF_SYSDEP_HAVE_LIBCAP
-#define VSF_SYSDEP_HAVE_UTMPX
+#if defined(__GLIBC__)
+  #define VSF_SYSDEP_HAVE_UTMPX
+#endif
 
 #define __USE_GNU
 #include <utmpx.h>