mirror of
https://git.openwrt.org/feed/packages.git
synced 2024-06-17 12:53:54 +02:00
bc7c3799d4
Make vsftpd to compile with musl, while preserving uclibc compatibility. When using musl: * disable UTMPX functionality * disable -lnsl option in upstream Makefile Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
14 lines
315 B
Diff
14 lines
315 B
Diff
--- 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__) || defined(__UCLIBC__)
|
|
+ #define VSF_SYSDEP_HAVE_UTMPX
|
|
+#endif
|
|
|
|
#define __USE_GNU
|
|
#include <utmpx.h>
|