SHARE
TWEET

compile2.patch

a guest Apr 28th, 2011 117 Never
  1. diff -aur libtorrent-0.12.6/src/data/memory_chunk.cc libtorrent-0.12.6-new//src/data/memory_chunk.cc
  2. --- libtorrent-0.12.6/src/data/memory_chunk.cc  2009-11-12 09:03:54.000000000 +0100
  3. +++ libtorrent-0.12.6-new//src/data/memory_chunk.cc     2011-04-28 19:26:34.868055574 +0200
  4. @@ -46,6 +46,8 @@
  5.  #include "torrent/exceptions.h"
  6.  #include "memory_chunk.h"
  7.  
  8. +using std::ptrdiff_t;
  9. +
  10.  namespace torrent {
  11.  
  12.  uint32_t MemoryChunk::m_pagesize = getpagesize();
  13. diff -aur libtorrent-0.12.6/src/torrent/data/block.h libtorrent-0.12.6-new//src/torrent/data/block.h
  14. --- libtorrent-0.12.6/src/torrent/data/block.h  2009-11-12 09:03:57.000000000 +0100
  15. +++ libtorrent-0.12.6-new//src/torrent/data/block.h     2011-04-28 19:26:10.738186297 +0200
  16. @@ -37,6 +37,10 @@
  17.  #ifndef LIBTORRENT_BLOCK_H
  18.  #define LIBTORRENT_BLOCK_H
  19.  
  20. +#ifndef NULL
  21. +#define NULL 0
  22. +#endif
  23. +
  24.  #include <vector>
  25.  #include <torrent/common.h>
  26.  #include <torrent/data/block_transfer.h>
RAW Paste Data
Top