summaryrefslogtreecommitdiffstats
path: root/package/vsftpd/vsftpd-2.0.7-uclibc.patch
diff options
context:
space:
mode:
authorWade Berrier <wberrier@gmail.com>2008-10-06 22:46:41 +0000
committerWade Berrier <wberrier@gmail.com>2008-10-06 22:46:41 +0000
commitd6b556670c7a96f341d2efc2c24fca1d0a1fe8a1 (patch)
tree722edc926e8719241f23378c635de0a0b51a1033 /package/vsftpd/vsftpd-2.0.7-uclibc.patch
parentb8508d758e8212df8e517089bccad3302966ed29 (diff)
downloadbuildroot-novena-d6b556670c7a96f341d2efc2c24fca1d0a1fe8a1.tar.gz
buildroot-novena-d6b556670c7a96f341d2efc2c24fca1d0a1fe8a1.zip
vsftpd:
-Patch to build against newer kernel headers ( vsftpd-2.0.7-uclibc.patch , based on idea from http://www.bitshrine.org/gpp/vsftpd-2.0.5-syscall2.patch ) -new basic init script (no config yet) -Update version (2.0.7) -openssl fixes -cleanup makefile deps so it doesn't get built when things don't change
Diffstat (limited to 'package/vsftpd/vsftpd-2.0.7-uclibc.patch')
-rw-r--r--package/vsftpd/vsftpd-2.0.7-uclibc.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/package/vsftpd/vsftpd-2.0.7-uclibc.patch b/package/vsftpd/vsftpd-2.0.7-uclibc.patch
new file mode 100644
index 000000000..43b6ccc26
--- /dev/null
+++ b/package/vsftpd/vsftpd-2.0.7-uclibc.patch
@@ -0,0 +1,15 @@
+--- vsftpd-2.0.5/sysdeputil.c.orig 2008-10-06 15:24:42.000000000 -0600
++++ vsftpd-2.0.5/sysdeputil.c 2008-10-06 15:35:35.000000000 -0600
+@@ -159,7 +159,12 @@
+ #include <linux/capability.h>
+ #include <errno.h>
+ #include <syscall.h>
++/* try to handle kernel header versions correctly (2.4 and >= 2.6.18) */
++#ifndef capset
++#define capset(head,data) syscall(__NR_capset,head,data)
++#else
+ _syscall2(int, capset, cap_user_header_t, header, const cap_user_data_t, data)
++#endif /* capset */
+ /* Gross HACK to avoid warnings - linux headers overlap glibc headers */
+ #undef __NFDBITS
+ #undef __FDMASK