Ticket #1266: libtorrent-gcc43-v2.patch

File libtorrent-gcc43-v2.patch, 3.2 KB (added by Philipp Reh, 5 years ago)

New patch with one more missing include fixed

  • rak/functional.h

    diff -Nurp libtorrent-0.12.0.old/rak/functional.h libtorrent-0.12.0/rak/functional.h
    old new  
    3737#ifndef RAK_FUNCTIONAL_H 
    3838#define RAK_FUNCTIONAL_H 
    3939 
     40#include <cstddef> 
    4041#include <functional> 
    4142 
    4243namespace rak { 
  • src/data/chunk.cc

    diff -Nurp libtorrent-0.12.0.old/src/data/chunk.cc libtorrent-0.12.0/src/data/chunk.cc
    old new  
    3636 
    3737#include "config.h" 
    3838 
     39#include <cstring> 
    3940#include <algorithm> 
    4041#include <functional> 
    4142 
  • src/data/chunk_list.h

    diff -Nurp libtorrent-0.12.0.old/src/data/chunk_list.h libtorrent-0.12.0/src/data/chunk_list.h
    old new  
    3838#define LIBTORRENT_DATA_CHUNK_LIST_H 
    3939 
    4040#include <vector> 
     41#include <string> 
    4142#include <rak/error_number.h> 
    4243#include <rak/functional.h> 
    4344 
  • src/net/address_list.cc

    diff -Nurp libtorrent-0.12.0.old/src/net/address_list.cc libtorrent-0.12.0/src/net/address_list.cc
    old new  
    3636 
    3737#include "config.h" 
    3838 
     39#include <algorithm> 
     40 
    3941#include <rak/functional.h> 
    4042 
    4143#include "download/download_info.h"  // for SocketAddressCompact 
  • src/torrent/data/file_list_iterator.h

    diff -Nurp libtorrent-0.12.0.old/src/torrent/data/file_list_iterator.h libtorrent-0.12.0/src/torrent/data/file_list_iterator.h
    old new  
    3737#ifndef LIBTORRENT_FILE_LIST_ITERATOR_H 
    3838#define LIBTORRENT_FILE_LIST_ITERATOR_H 
    3939 
     40#include <cstdlib> 
    4041#include <torrent/common.h> 
    4142#include <torrent/data/file_list.h> 
    4243 
  • src/torrent/exceptions.cc

    diff -Nurp libtorrent-0.12.0.old/src/torrent/exceptions.cc libtorrent-0.12.0/src/torrent/exceptions.cc
    old new  
    3737#include "config.h" 
    3838 
    3939#include <cerrno> 
     40#include <cstring> 
    4041 
    4142#include "exceptions.h" 
    4243 
  • src/torrent/tracker_list.h

    diff -Nurp libtorrent-0.12.0.old/src/torrent/tracker_list.h libtorrent-0.12.0/src/torrent/tracker_list.h
    old new  
    3838#define LIBTORRENT_TRACKER_LIST_H 
    3939 
    4040#include <algorithm> 
     41#include <string> 
    4142#include <vector> 
    4243#include <torrent/common.h> 
    4344 
  • src/utils/diffie_hellman.cc

    diff -Nurp libtorrent-0.12.0.old/src/utils/diffie_hellman.cc libtorrent-0.12.0/src/utils/diffie_hellman.cc
    old new  
    3636 
    3737#include "config.h" 
    3838 
     39#include <cstring> 
    3940#include <string> 
    4041 
    4142#ifdef USE_OPENSSL