summaryrefslogtreecommitdiff
path: root/package/vsftpd/patches/patch-sysdeputil_c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-02-11 14:24:39 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2014-02-11 14:24:39 +0100
commit0cd03542850a3aacea7060d8debf0fdef333aacc (patch)
tree48d669fe8de927e0d4e323bdf5f7a7261b8541c1 /package/vsftpd/patches/patch-sysdeputil_c
parenta6bffe8d51139834bbb15c1666b1da05ee5c0c81 (diff)
fix musl compile
Diffstat (limited to 'package/vsftpd/patches/patch-sysdeputil_c')
-rw-r--r--package/vsftpd/patches/patch-sysdeputil_c13
1 files changed, 13 insertions, 0 deletions
diff --git a/package/vsftpd/patches/patch-sysdeputil_c b/package/vsftpd/patches/patch-sysdeputil_c
new file mode 100644
index 000000000..693d90b63
--- /dev/null
+++ b/package/vsftpd/patches/patch-sysdeputil_c
@@ -0,0 +1,13 @@
+--- vsftpd-3.0.2.orig/sysdeputil.c 2012-09-16 06:18:04.000000000 +0200
++++ vsftpd-3.0.2/sysdeputil.c 2014-02-11 14:21:18.000000000 +0100
+@@ -81,6 +81,10 @@
+ #include <linux/unistd.h>
+ #include <errno.h>
+ #include <syscall.h>
++/* for musl */
++#if !defined(__GLIBC__)
++#define WTMPX_FILE "/dev/null"
++#endif
+ #endif
+
+ #if defined(__linux__) && !defined(__ia64__) && !defined(__s390__)