bump version
[buildroot.git] / package / openssl / openssl-0.9.8i-02-largefile.patch
blobf967f4a1f7184a02a5322a0b88fb0582fea00747
1 --- openssl-0.9.8h.orig/crypto/bio/bss_file.c 2008-01-03 23:53:04.000000000 +0100
2 +++ openssl-0.9.8h/crypto/bio/bss_file.c 2008-10-31 18:43:06.000000000 +0100
3 @@ -65,6 +65,7 @@
4 #ifndef HEADER_BSS_FILE_C
5 #define HEADER_BSS_FILE_C
7 +#include <features.h>
8 #if defined(__linux) || defined(__sun) || defined(__hpux)
9 /* Following definition aliases fopen to fopen64 on above mentioned
10 * platforms. This makes it possible to open and sequentially access
11 @@ -78,10 +79,12 @@
12 * sequential access of large files without extra "magic" comprise *BSD,
13 * Darwin, IRIX...
15 +#if !defined __UCLIBC__ || (defined __UCLIBC__ && defined __UCLIBC_HAS_LFS__)
16 #ifndef _FILE_OFFSET_BITS
17 #define _FILE_OFFSET_BITS 64
18 #endif
19 #endif
20 +#endif
22 #include <stdio.h>
23 #include <errno.h>