vsftpd-2.0.5-uclibc_lfs.patch 624 B

12345678910111213141516171819
  1. diff -rdup vsftpd-2.0.5.orig/sysutil.c vsftpd-2.0.5/sysutil.c
  2. --- vsftpd-2.0.5.orig/sysutil.c 2006-07-03 18:26:40.000000000 +0200
  3. +++ vsftpd-2.0.5/sysutil.c 2006-12-14 15:13:15.000000000 +0100
  4. @@ -16,11 +16,15 @@
  5. #include "utility.h"
  6. #include "tunables.h"
  7. +#include "builddefs.h"
  8. +
  9. +#if !defined __UCLIBC__ || (defined __UCLIBC__ && defined __UCLIBC_HAS_LFS__)
  10. /* Activate 64-bit file support on Linux/32bit plus others */
  11. #define _FILE_OFFSET_BITS 64
  12. #define _LARGEFILE_SOURCE 1
  13. #define _LARGEFILE64_SOURCE 1
  14. #define _LARGE_FILES 1
  15. +#endif
  16. /* For Linux, this adds nothing :-) */
  17. #include "port/porting_junk.h"