Pastebin launched a little side project called HostCabi.net, check it out ;-)Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

compile2.patch

By: a guest on Apr 28th, 2011  |  syntax: None  |  size: 0.93 KB  |  hits: 109  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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>