summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-daemons/vsftpd/vsftpd-3.0.3/0001-sysdeputil.c-Fix-with-musl-which-does-not-have-utmpx.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-daemons/vsftpd/vsftpd-3.0.3/0001-sysdeputil.c-Fix-with-musl-which-does-not-have-utmpx.patch')
-rw-r--r--meta-networking/recipes-daemons/vsftpd/vsftpd-3.0.3/0001-sysdeputil.c-Fix-with-musl-which-does-not-have-utmpx.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/vsftpd/vsftpd-3.0.3/0001-sysdeputil.c-Fix-with-musl-which-does-not-have-utmpx.patch b/meta-networking/recipes-daemons/vsftpd/vsftpd-3.0.3/0001-sysdeputil.c-Fix-with-musl-which-does-not-have-utmpx.patch
new file mode 100644
index 0000000000..c3919e1174
--- /dev/null
+++ b/meta-networking/recipes-daemons/vsftpd/vsftpd-3.0.3/0001-sysdeputil.c-Fix-with-musl-which-does-not-have-utmpx.patch
@@ -0,0 +1,28 @@
1From e55135c2a4ea7eae3cb1f4dccf69ca477ea095bf 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 sysdeputil.c | 4 +++-
9 1 file changed, 3 insertions(+), 1 deletion(-)
10
11diff --git a/sysdeputil.c b/sysdeputil.c
12index 06f01f4..a8cff3b 100644
13--- a/sysdeputil.c
14+++ b/sysdeputil.c
15@@ -58,7 +58,9 @@
16 #define VSF_SYSDEP_HAVE_SHADOW
17 #define VSF_SYSDEP_HAVE_USERSHELL
18 #define VSF_SYSDEP_HAVE_LIBCAP
19-#define VSF_SYSDEP_HAVE_UTMPX
20+#if defined(__GLIBC__)
21+ #define VSF_SYSDEP_HAVE_UTMPX
22+#endif
23
24 #define __USE_GNU
25 #include <utmpx.h>
26--
272.12.1
28