diff options
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.patch | 28 |
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 @@ | |||
1 | From e55135c2a4ea7eae3cb1f4dccf69ca477ea095bf Mon Sep 17 00:00:00 2001 | ||
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> | ||
7 | --- | ||
8 | sysdeputil.c | 4 +++- | ||
9 | 1 file changed, 3 insertions(+), 1 deletion(-) | ||
10 | |||
11 | diff --git a/sysdeputil.c b/sysdeputil.c | ||
12 | index 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 | -- | ||
27 | 2.12.1 | ||
28 | |||