summaryrefslogtreecommitdiff
path: root/package/links/links-1.01pre1-no-ssl-largefile.patch
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2010-06-25 12:18:30 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2010-06-25 12:18:30 +0200
commita2a22b82fa23dda5c89925bf59e04ad725ffecd2 (patch)
treec3f47eff90d9fdb9a23c11f11bc54a6c3cf6f10a /package/links/links-1.01pre1-no-ssl-largefile.patch
parent6074f08b8d39bcb3ccd5abf77bc262b7b9d739ca (diff)
parent6b92969386a6fce36a0396844769ab3eac463df7 (diff)
Merge branch 'autotools-conversion' of git://git.busybox.net/~tpetazzoni/git/buildroot
Diffstat (limited to 'package/links/links-1.01pre1-no-ssl-largefile.patch')
-rw-r--r--package/links/links-1.01pre1-no-ssl-largefile.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/package/links/links-1.01pre1-no-ssl-largefile.patch b/package/links/links-1.01pre1-no-ssl-largefile.patch
new file mode 100644
index 000000000..f3143cba0
--- /dev/null
+++ b/package/links/links-1.01pre1-no-ssl-largefile.patch
@@ -0,0 +1,22 @@
+Index: links-1.01pre1-no-ssl/links.h
+===================================================================
+--- links-1.01pre1-no-ssl.orig/links.h 2010-06-21 00:39:10.000000000 +0200
++++ links-1.01pre1-no-ssl/links.h 2010-06-21 00:39:52.000000000 +0200
+@@ -2,6 +2,9 @@
+ #define __EXTENSIONS__
+ #endif
+
++#include <features.h>
++/* uclibc without largefile support #errors on _FILE_OFFSET_BITS=64 */
++#if !(defined(__UCLIBC__) && !defined(__UCLIBC_HAS_LFS__))
+ #ifndef _LARGEFILE_SOURCE
+ #define _LARGEFILE_SOURCE 1
+ #endif
+@@ -9,6 +12,7 @@
+ #ifndef _FILE_OFFSET_BITS
+ #define _FILE_OFFSET_BITS 64
+ #endif
++#endif
+
+ #ifdef HAVE_CONFIG_H
+ #include "config.h"