From 9d07fcd08e710beff30841b47db8b8772a9d3b7b Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Wed, 26 May 2010 23:00:18 +0200 Subject: vsftpd: fix build without largefile support Fix lfs patch to include before checking any of the uClibc defines. Signed-off-by: Peter Korsgaard --- package/vsftpd/vsftpd-2.0.5-uclibc_lfs.patch | 19 ------------------- package/vsftpd/vsftpd-2.0.7-uclibc_lfs.patch | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 19 deletions(-) delete mode 100644 package/vsftpd/vsftpd-2.0.5-uclibc_lfs.patch create mode 100644 package/vsftpd/vsftpd-2.0.7-uclibc_lfs.patch (limited to 'package/vsftpd') diff --git a/package/vsftpd/vsftpd-2.0.5-uclibc_lfs.patch b/package/vsftpd/vsftpd-2.0.5-uclibc_lfs.patch deleted file mode 100644 index ebd25ca78..000000000 --- a/package/vsftpd/vsftpd-2.0.5-uclibc_lfs.patch +++ /dev/null @@ -1,19 +0,0 @@ -diff -rdup vsftpd-2.0.5.orig/sysutil.c vsftpd-2.0.5/sysutil.c ---- vsftpd-2.0.5.orig/sysutil.c 2006-07-03 18:26:40.000000000 +0200 -+++ vsftpd-2.0.5/sysutil.c 2006-12-14 15:13:15.000000000 +0100 -@@ -16,11 +16,15 @@ - #include "utility.h" - #include "tunables.h" - -+#include "builddefs.h" -+ -+#if !defined __UCLIBC__ || (defined __UCLIBC__ && defined __UCLIBC_HAS_LFS__) - /* Activate 64-bit file support on Linux/32bit plus others */ - #define _FILE_OFFSET_BITS 64 - #define _LARGEFILE_SOURCE 1 - #define _LARGEFILE64_SOURCE 1 - #define _LARGE_FILES 1 -+#endif - - /* For Linux, this adds nothing :-) */ - #include "port/porting_junk.h" diff --git a/package/vsftpd/vsftpd-2.0.7-uclibc_lfs.patch b/package/vsftpd/vsftpd-2.0.7-uclibc_lfs.patch new file mode 100644 index 000000000..610b782cd --- /dev/null +++ b/package/vsftpd/vsftpd-2.0.7-uclibc_lfs.patch @@ -0,0 +1,19 @@ +diff -rdup vsftpd-2.0.5.orig/sysutil.c vsftpd-2.0.5/sysutil.c +--- vsftpd-2.0.5.orig/sysutil.c 2006-07-03 18:26:40.000000000 +0200 ++++ vsftpd-2.0.5/sysutil.c 2006-12-14 15:13:15.000000000 +0100 +@@ -16,11 +16,15 @@ + #include "utility.h" + #include "tunables.h" + ++#include ++ ++#if !defined __UCLIBC__ || (defined __UCLIBC__ && defined __UCLIBC_HAS_LFS__) + /* Activate 64-bit file support on Linux/32bit plus others */ + #define _FILE_OFFSET_BITS 64 + #define _LARGEFILE_SOURCE 1 + #define _LARGEFILE64_SOURCE 1 + #define _LARGE_FILES 1 ++#endif + + /* For Linux, this adds nothing :-) */ + #include "port/porting_junk.h" -- cgit v1.2.3