summaryrefslogtreecommitdiff
path: root/package/links/links-1.01pre1-no-ssl-largefile.patch
diff options
context:
space:
mode:
authorcmchao <cmchao@gmail.com>2010-06-16 19:47:06 +0800
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2010-06-24 13:51:07 +0200
commit2406251d701a0be48d9e52bb0bf809586e62b920 (patch)
treed1c7ef55995a3f88e23c5bcd5d4cf06da200b210 /package/links/links-1.01pre1-no-ssl-largefile.patch
parent9486dcc93a15e3e44e6a584589562c24da23fc50 (diff)
links : convert to autotools infrastructure & bump to 1.01pre1-no-ssl
Changes by Thomas Petazzoni <thomas.petazzoni@free-electrons.com> * Installation to target is the default behaviour * No installation to staging is the default behaviour * Stripping is done globally * Remove incorrect cleaning rules Signed-off-by: cmchao <cmchao@gmail.com>
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"