links-no-largefile.patch 654 B

12345678910111213141516171819202122
  1. Index: links-1.01pre1-no-ssl/links.h
  2. ===================================================================
  3. --- links-1.01pre1-no-ssl.orig/links.h 2010-06-21 00:39:10.000000000 +0200
  4. +++ links-1.01pre1-no-ssl/links.h 2010-06-21 00:39:52.000000000 +0200
  5. @@ -2,6 +2,9 @@
  6. #define __EXTENSIONS__
  7. #endif
  8. +#include <features.h>
  9. +/* uclibc without largefile support #errors on _FILE_OFFSET_BITS=64 */
  10. +#if !(defined(__UCLIBC__) && !defined(__UCLIBC_HAS_LFS__))
  11. #ifndef _LARGEFILE_SOURCE
  12. #define _LARGEFILE_SOURCE 1
  13. #endif
  14. @@ -9,6 +12,7 @@
  15. #ifndef _FILE_OFFSET_BITS
  16. #define _FILE_OFFSET_BITS 64
  17. #endif
  18. +#endif
  19. #ifdef HAVE_CONFIG_H
  20. #include "config.h"