summaryrefslogtreecommitdiff
path: root/package/links/links-no-largefile.patch
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2011-02-09 15:22:40 -0300
committerPeter Korsgaard <jacmet@sunsite.dk>2011-02-09 22:59:53 +0100
commit27680c7ad9f091b85c90ff13f4679985743f0363 (patch)
tree182a1830a57f38d5e92dc6f3bea5cc53bdcba19f /package/links/links-no-largefile.patch
parentb5b60cf5c1a2d822e1d22bf514c9c392d55d0799 (diff)
links: bump to version 2.3pre1
* Switch to links 2.3pre1. * Enable graphics mode via directfb. TODO: Support X11 mode, maybe linuxfb (requires gpm). Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/links/links-no-largefile.patch')
-rw-r--r--package/links/links-no-largefile.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/package/links/links-no-largefile.patch b/package/links/links-no-largefile.patch
new file mode 100644
index 000000000..f3143cba0
--- /dev/null
+++ b/package/links/links-no-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"