void-packages/srcpkgs/vsftpd/patches/006-musl-compatibility.patch
Enno Boland 3e76d493d2 vsftpd: fix musl & cross-compile.
add openwrt patches.
2015-12-04 06:27:44 +01:00

13 lines
316 B
Diff

--- sysdeputil.c.orig
+++ 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>